-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Replace nose with pytest #34778
Merged
Replace nose with pytest #34778
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
77ca2d2
Remove pytest compatibility module
millerdev aba41f6
Initial pytest implementation
millerdev ec95345
Remove nose test settings
millerdev 18b98e9
Show helpful error on ./manage.py test
millerdev 4d44b95
Adapt patches nose plugin to pytest
millerdev 40b26c2
Adapt redislocks nose plugin to pytest
millerdev 3d22e5c
Add pytest-unmagic plugin for fixtures
millerdev e56d177
Adapt classCleanup tests to pytest
millerdev 2efd892
Uninstall ddtrace ModuleWatchdog when testing
millerdev 66663ce
Adapt reusedb feature to pytest - some tests passing
millerdev 8372914
Use ExitStack for cleaner test database tear down
millerdev c3b3c75
Rename methods and function
millerdev 1ae6ea1
Move DeferredDatabaseContext methods to functions
millerdev a834219
Implement db blocker for Couch
millerdev aa24be1
Setup databases on first db unblock
millerdev 9613cdf
Do not unblock db for SimpleTestCase tests
millerdev 3d5c1a1
Observe pytest-django's database options
millerdev a513405
Adapt dividedwerun nose plugin to pytest
millerdev 0ca69fd
Remove djangomigrations plugin
millerdev 069391e
Add test markers: es_test, sharded, slow
millerdev 9b8137f
Remove obsolete and disabled nose plugins
millerdev 912e55c
Move timelimit decorator to its own module
millerdev 421f770
Adapt (part of) timing nose plugin to pytest
millerdev 9b523cd
More nose.tools: assert_raises, assert_equal, ...
millerdev e305b74
Add 'skip_setup_users' marker
millerdev 68219e5
Convert "yield" tests to parametrized tests
millerdev 5ae9b5e
Remove nose test utilities module
millerdev c58537c
Align test discovery with nose
millerdev 214546f
Fix parametrized test that hit Couch
millerdev 2253349
make requirements
millerdev e7650e0
Switch github actions from nose to pytest
millerdev 509dddc
Ignore unclosed file warnings in tests
millerdev 05d1a10
Work around pytest capture plugin
millerdev e33e25f
Adapt champ tests to pytest
millerdev cd7c0a8
Adapt inddex tests to pytest
millerdev 946173a
Adapt up_nrhm tests to pytest
millerdev ca33bd1
Update testing documentation: nose -> pytest
millerdev 7ebdc62
Merge branch 'master' into dm/pytest
millerdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect that if
create_db
were true, we wouldn't skip setup?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs for
--create-db
say:It will not skip setup if
create_db
is true unless reusedb is not false.Another way to say that is
create_db
has no effect unlessreusedb
is true. Databases are always (re)created unlessreusedb
is true.