Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(testing): Add pytest-watch #853

Merged
merged 11 commits into from Mar 28, 2022
7 changes: 7 additions & 0 deletions pytest.ini
Expand Up @@ -2,3 +2,10 @@
DJANGO_SETTINGS_MODULE = tests.integrations.django.myapp.settings
addopts = --tb=short
markers = tests_internal_exceptions

[pytest-watch]
; Enable this to drop into pdb on errors
; pdb = True

verbose = True
nobeep = True
1 change: 1 addition & 0 deletions test-requirements.txt
@@ -1,5 +1,6 @@
pytest==3.7.3
pytest-forked==1.1.3
pytest-watch==4.2.0
tox==3.7.0
Werkzeug==0.15.5
pytest-localserver==0.5.0
Expand Down
2 changes: 2 additions & 0 deletions tests/integrations/gcp/test_gcp.py
Expand Up @@ -123,6 +123,8 @@ def inner(code, subprocess_kwargs=()):
else:
continue

stream.close()

return envelope, event

return inner
Expand Down
2 changes: 2 additions & 0 deletions tests/integrations/stdlib/test_httplib.py
Expand Up @@ -106,3 +106,5 @@ def test_httplib_misuse(sentry_init, capture_events):
"status_code": 200,
"reason": "OK",
}

conn.close()
lobsterkatie marked this conversation as resolved.
Show resolved Hide resolved