-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34778 from dimagi/dm/pytest
Replace nose with pytest
- Loading branch information
Showing
61 changed files
with
1,752 additions
and
2,005 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[pytest] | ||
minversion = 8.1 | ||
|
||
addopts = | ||
--strict-markers | ||
-pcorehq.tests.pytest_hooks | ||
# HQ has its own (incompatible) warnings system | ||
-pno:warnings | ||
markers = | ||
es_test: marker for elasticsearch tests | ||
sharded: tests to be run against shard databases | ||
skip_setup_users: skip user setup in importer tests | ||
slow: marks tests as slow (deselect with -m 'not slow') | ||
|
||
empty_parameter_set_mark = fail_at_collect | ||
xfail_strict = true | ||
|
||
norecursedirs = | ||
.* | ||
*.egg | ||
artifacts | ||
docker | ||
git-hooks | ||
locale | ||
node_modules | ||
requirements | ||
scripts | ||
sharedfiles | ||
staticfiles | ||
|
||
python_files = | ||
test_*.py | ||
tests.py | ||
*/tests/*.py | ||
|
||
pythonpath = | ||
. | ||
corehq/ex-submodules | ||
# 'submodules' is for langcodes | ||
submodules | ||
submodules/commcare-translations | ||
submodules/couchdbkit-aggregate | ||
submodules/django-digest-src | ||
submodules/django-no-exceptions | ||
submodules/python-digest | ||
submodules/xml2json | ||
|
||
required_plugins = pytest-django | ||
DJANGO_SETTINGS_MODULE = testsettings |
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
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
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
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
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
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
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
Oops, something went wrong.