Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#244] Bring test suite up to date #247

Merged
merged 11 commits into from
Mar 6, 2020
Merged

[#244] Bring test suite up to date #247

merged 11 commits into from
Mar 6, 2020

Conversation

elbenfreund
Copy link
Collaborator

@elbenfreund elbenfreund commented Mar 6, 2020

After returning to the codebase, the testsuite showed multiple issues.
This PR deal with them by:

  • Remove version pinning of test libraries so the test run on up to date tooling
  • Set one actual failed test to xfail (Failed test after coming back #245 ), which needs to be dealt with seperately.
  • Use new SQLAlchemy meta attribute in order to avoid deprecation warnings
  • Remove broken links, due to changes in legacy-hamster's master branch.
  • Drop python2 support within the test suite and travis CI

Outstanding issue: #245

We still get a warning about some fuckup with regards to scoped alchemy sessions. This will most likely take more time and should be addressed in a separate issue.

/.venv/lib/python3.7/site-packages/sqlalchemy/orm/scoping.py:107: SAWarning: At least one scoped session is already present.  configure() can not affect sessions that have already been created.
    "At least one scoped session is already present. "

Closes:

This is just a short term solution in order to get the whole test suite
running again as a solid baseline.

Ref.: #245, #244
@elbenfreund elbenfreund self-assigned this Mar 6, 2020
@elbenfreund elbenfreund added this to the 0.14.0 milestone Mar 6, 2020
This dealt addresses messages like this:
```
DeprecationWarning: <class
'tests.backends.sqlalchemy.factories.AlchemyFactFactory.Meta'>.force_flush
has been deprecat ed as of 2.8.0 and will be removed in 3.0.0. Please
set ``<class
'tests.backends.sqlalchemy.factories.AlchemyFactFactory.Meta'>.sqlalchemy_session_persistence
= 'flush'`` instead.
```

Ref.: #244
Due to recent work on legacy hamster, the old referenes (on master) do
not work anymore. As they were just optional references anyway, they got
removed.

Ref.: #244
@codecov
Copy link

codecov bot commented Mar 6, 2020

Codecov Report

Merging #247 into develop will decrease coverage by 1.3%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #247      +/-   ##
===========================================
- Coverage    96.06%   94.76%   -1.31%     
===========================================
  Files            9        7       -2     
  Lines          941      993      +52     
  Branches       141      128      -13     
===========================================
+ Hits           904      941      +37     
- Misses          14       34      +20     
+ Partials        23       18       -5

@elbenfreund elbenfreund merged commit ea3ec9a into develop Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant