Skip to content

Commit

Permalink
deactivated sentry integration for tests
Browse files Browse the repository at this point in the history
deactivated sentry integration until sanic-org/sanic#2451 is resolved
  • Loading branch information
juan-pe committed Jun 3, 2022
1 parent ceb80ef commit 34b45a9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions infoenergia_api/app.py
Expand Up @@ -29,13 +29,15 @@

def build_app():
from config import config

# sentry_sdk.init(
# dsn=config.SENTRY_DSN,
# integrations=[SanicIntegration()],
# release=VERSION,
# environment=os.environ.get('INFOENERGIA_MODULE_SETTINGS').split('.')[-1]
# )
## Triki if until https://github.com/sanic-org/sanic/pull/2451 is resolved
if (environment := os.environ.get(
'INFOENERGIA_MODULE_SETTINGS').split('.')[-1] != 'testing'):
sentry_sdk.init(
dsn=config.SENTRY_DSN,
integrations=[SanicIntegration()],
release=VERSION,
environment=environment
)

app = Sanic('infoenergia-api')
try:
Expand Down

0 comments on commit 34b45a9

Please sign in to comment.