pytest-watch
pytest-watch copied to clipboard
ignore `Client.dataset is deprecated` warnings
running tests with pytest I get pages of errors related to numpy etc.
tests/configlib_test.py::test_agents
/usr/local/google/home/dcollier/dev/kzen/venv/lib/python3.9/site-packages/pandas_gbq/load.py:59: PendingDeprecationWarning: Client.dataset is deprecated and will be removed in a future version. Use a string like 'my_project.my_dataset' or a cloud.google.bigquery.DatasetReference object, instead.
destination_table = client.dataset(dataset_id).table(table_id)
pytest itself has a flag --disable-pytest-warnings
but this seems to just choke pytest.
ptw --ignore ./dfcx_sapi --ignore ./venv --disable-pytest-warnings
Usage: ptw [options] [--ignore <dir>...] [<directory>...] [-- <pytest-args>...]
make: *** [Makefile:159: watch] Error 1
is there a way to pass args into pytest?
or could this be supported in future?