diff --git a/.coveragerc b/.coveragerc index 25a567d..a03809c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,7 +2,7 @@ branch = 1 cover_pylib = 0 include = *django_celery_monitor/* -omit = t/* +omit = tests/* [report] omit = diff --git a/MANIFEST.in b/MANIFEST.in index b92a3a7..7902927 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,9 +9,9 @@ recursive-include docs * recursive-include extra/* recursive-include examples * recursive-include requirements *.txt *.rst -recursive-include t *.py recursive-include django_celery_monitor *.py +recursive-include tests *.py recursive-exclude * __pycache__ recursive-exclude * *.py[co] recursive-exclude * .*.sw* diff --git a/setup.cfg b/setup.cfg index 5cbb725..7260456 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [tool:pytest] -testpaths = t/unit +testpaths = tests/unit python_classes = test_* -DJANGO_SETTINGS_MODULE=t.proj.settings +DJANGO_SETTINGS_MODULE=tests.proj.settings [flake8] # classes can be lowercase, arguments and variables can be uppercase diff --git a/setup.py b/setup.py index 4d1913d..21a9c31 100644 --- a/setup.py +++ b/setup.py @@ -135,7 +135,7 @@ class pytest(setuptools.command.test.test): setuptools.setup( name=NAME, - packages=setuptools.find_packages(exclude=['t', 't.*']), + packages=setuptools.find_packages(exclude=['tests', 'tests.*']), version=meta['version'], description=meta['doc'], long_description=long_description, diff --git a/t/__init__.py b/tests/__init__.py similarity index 100% rename from t/__init__.py rename to tests/__init__.py diff --git a/t/proj/__init__.py b/tests/proj/__init__.py similarity index 100% rename from t/proj/__init__.py rename to tests/proj/__init__.py diff --git a/t/proj/celery.py b/tests/proj/celery.py similarity index 100% rename from t/proj/celery.py rename to tests/proj/celery.py diff --git a/t/proj/settings.py b/tests/proj/settings.py similarity index 100% rename from t/proj/settings.py rename to tests/proj/settings.py diff --git a/t/proj/urls.py b/tests/proj/urls.py similarity index 100% rename from t/proj/urls.py rename to tests/proj/urls.py diff --git a/t/proj/wsgi.py b/tests/proj/wsgi.py similarity index 100% rename from t/proj/wsgi.py rename to tests/proj/wsgi.py diff --git a/t/unit/__init__.py b/tests/unit/__init__.py similarity index 100% rename from t/unit/__init__.py rename to tests/unit/__init__.py diff --git a/t/unit/conftest.py b/tests/unit/conftest.py similarity index 100% rename from t/unit/conftest.py rename to tests/unit/conftest.py diff --git a/t/unit/test_camera.py b/tests/unit/test_camera.py similarity index 100% rename from t/unit/test_camera.py rename to tests/unit/test_camera.py