Skip to content

Commit aaa7701

Browse files
committed
💚 [#88] add SENTRY_DSN env var
1 parent ec89286 commit aaa7701

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pythonpath = "."
104104
env = [
105105
"DJANGO_SETTINGS_MODULE=testapp.settings",
106106
"SECRET_KEY=not-so-secret",
107+
"SENTRY_DSN=https://[email protected]/1"
107108
]
108109

109110
[tool.bumpversion]

testapp/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pathlib import Path
22

3-
from open_api_framework.conf.base import SENTRY_CONFIG # noqa
3+
from open_api_framework.conf.base import SENTRY_CONFIG, SENTRY_DSN # noqa
44
from open_api_framework.conf.utils import config
55

66
BASE_DIR = Path(__file__).resolve(strict=True).parent

tests/test_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ def test_sentry_settings():
44
"""
55
from django.conf import settings
66

7-
assert "SENTRY_DSN" in settings
7+
assert hasattr(settings, "SENTRY_CONFIG") is True
8+
assert hasattr(settings, "SENTRY_DSN") is True

0 commit comments

Comments
 (0)