diff --git a/go_ji/__init__.py b/go_ji/__init__.py
index edc60d1..a25f3df 100644
--- a/go_ji/__init__.py
+++ b/go_ji/__init__.py
@@ -35,7 +35,7 @@ def create_app(config_override: dict[str, Any] = {}) -> Flask:
app.config.from_mapping(CONFIG)
app.config.from_mapping(config_override)
- if sentry_config := app.config["SENTRY"]:
+ if sentry_config := app.config["SENTRY"]: # pragma: no cover
sentry_sdk.init(
dsn=sentry_config["DSN"],
environment=sentry_config["ENVIRONMENT"],
@@ -62,7 +62,7 @@ def create_app(config_override: dict[str, Any] = {}) -> Flask:
# Might need to set the sentry user here, we'll see?
return
- if app.config["DEBUG"]:
+ if app.config["DEBUG"]: # pragma: no cover
login = "user@example"
name = "A User"
else:
diff --git a/tests/conftest.py b/tests/conftest.py
index 686ab8d..6cc88ac 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -30,6 +30,7 @@ def app(db_url):
{
"TESTING": True,
"DB_URL": db_url,
+ "SENTRY": {},
}
)