diff --git a/cadasta/pytest.ini b/cadasta/pytest.ini index ec08413de..68e2e7b0a 100644 --- a/cadasta/pytest.ini +++ b/cadasta/pytest.ini @@ -1,2 +1,5 @@ [pytest] addopts = --ds=config.settings.test +filterwarnings= default + ignore:DeprecationWarning + ignore:.*deprecated.*:Warning diff --git a/runtests.py b/runtests.py index beef89c64..0a07e1305 100755 --- a/runtests.py +++ b/runtests.py @@ -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]