Skip to content

Commit

Permalink
Pytest warning filters (#1523)
Browse files Browse the repository at this point in the history
* ignore pytest warnings

* Update pytest.ini

* Update pytest.ini

* Update pytest.ini

* Disable all warnings when running in travis env

* Combine args
  • Loading branch information
amplifi authored May 30, 2017
1 parent 4ba5b25 commit b936a84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cadasta/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[pytest]
addopts = --ds=config.settings.test
filterwarnings= default
ignore:DeprecationWarning
ignore:.*deprecated.*:Warning
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def is_class(string):
pytest_args = PYTEST_ARGS[style]

if os.environ['DJANGO_SETTINGS_MODULE'] == 'config.settings.travis':
pytest_args = pytest_args + ['--ds=config.settings.travis']
pytest_args = pytest_args + ['--disable-pytest-warnings', '--ds=config.settings.travis']

pytest_args_functional = PYTEST_ARGS_FUNCTIONAL[style]

Expand Down

0 comments on commit b936a84

Please sign in to comment.