Browse Source

moved tests outside package

rework
Holger Frey 7 years ago
parent
commit
0d83eac6c1
  1. 4
      Makefile
  2. 2
      setup.cfg
  3. 0
      tests/__init__.py
  4. 0
      tests/_functional/__init__.py
  5. 0
      tests/_functional/errors.py
  6. 0
      tests/_functional/pages.py
  7. 0
      tests/models/__init__.py
  8. 2
      tests/models/account.py
  9. 0
      tests/models/meta.py
  10. 0
      tests/resources/__init__.py
  11. 0
      tests/resources/root_resource.py
  12. 0
      tests/security.py
  13. 0
      tests/views/__init__.py
  14. 0
      tests/views/errors.py
  15. 0
      tests/views/pages.py

4
Makefile

@ -50,13 +50,13 @@ clean-test: ## remove test and coverage artifacts @@ -50,13 +50,13 @@ clean-test: ## remove test and coverage artifacts
rm -fr htmlcov/
lint: ## check style with flake8
flake8 ordr
flake8 ordr tests
test: ## run tests quickly with the default Python, ignoring functional tests
py.test
coverage: ## check code coverage quickly with the default Python
coverage run --source ordr -m pytest --ignore ordr/tests/_functional/
coverage run --source ordr -m pytest --ignore tests/_functional/
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html

2
setup.cfg

@ -23,7 +23,7 @@ hang_closing = True @@ -23,7 +23,7 @@ hang_closing = True
test = pytest
[tool:pytest]
testpaths = ordr
testpaths = tests
python_files = *.py
collect_ignore = ['setup.py']

0
ordr/tests/__init__.py → tests/__init__.py

0
ordr/tests/_functional/__init__.py → tests/_functional/__init__.py

0
ordr/tests/_functional/errors.py → tests/_functional/errors.py

0
ordr/tests/_functional/pages.py → tests/_functional/pages.py

0
ordr/tests/models/__init__.py → tests/models/__init__.py

2
ordr/tests/models/account.py → tests/models/account.py

@ -3,7 +3,7 @@ import pytest @@ -3,7 +3,7 @@ import pytest
from datetime import datetime, timedelta
from pyramid.testing import DummyRequest
from ordr.tests import app_config # noqa: F401
from .. import app_config # noqa: F401
@pytest.mark.parametrize(

0
ordr/tests/models/meta.py → tests/models/meta.py

0
ordr/tests/resources/__init__.py → tests/resources/__init__.py

0
ordr/tests/resources/root_resource.py → tests/resources/root_resource.py

0
ordr/tests/security.py → tests/security.py

0
ordr/tests/views/__init__.py → tests/views/__init__.py

0
ordr/tests/views/errors.py → tests/views/errors.py

0
ordr/tests/views/pages.py → tests/views/pages.py