Skip to content

Commit 7ded5ba

Browse files
committed
✅ [#88] test sentry setting
1 parent 98c2cd4 commit 7ded5ba

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER
9999

100100
[tool.pytest.ini_options]
101101
testpaths = ["tests"]
102+
pythonpath = "."
102103
DJANGO_SETTINGS_MODULE = "testapp.settings"
103104

104105
[tool.bumpversion]

testapp/settings.py

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

3+
from open_api_framework.conf.base import SENTRY_CONFIG # noqa
34
from open_api_framework.conf.utils import config
45

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

tests/test_settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def test_sentry_settings():
2+
"""
3+
test that sentry settings are initialized
4+
"""
5+
from django.conf import settings
6+
7+
assert "SENTRY_DSN" in settings

0 commit comments

Comments
 (0)