Skip to content

Commit

Permalink
Use pytest-env to always disable telemetry during tests (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandmcqueen authored Jan 11, 2020
1 parent 79c3224 commit 065ab27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

test:
QUILT_DISABLE_USAGE_METRICS=True pytest --disable-warnings
pytest --disable-warnings

install-local:
pip install -e .[tests]
2 changes: 2 additions & 0 deletions api/python/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ filterwarnings =
ignore::ImportWarning
ignore:::IPython.lib.pretty

env =
QUILT_DISABLE_USAGE_METRICS=True
1 change: 1 addition & 0 deletions api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def run(self):
'pyarrow>=0.14.1', # as of 7/5/19: linux/circleci bugs on 0.14.0
'pytest<5.1.0', # TODO: Fix pytest.ensuretemp in conftest.py
'pytest-cov',
'pytest-env',
'responses',
'tox',
'detox',
Expand Down

0 comments on commit 065ab27

Please # to comment.