Skip to content

Commit

Permalink
replace env name from prod to test
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Jul 23, 2024
1 parent c4fcff0 commit 4abf1d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
# to new `SECRET` run openssl rand -hex 32
SECRET: b8a3054ba3457614e95a88cc0807384430c1b338a54e95e4245f41e060da68bc
ACCESS_TOKEN_EXPIRE_MINUTES: 30
IS_PROD_ENVIRONMENT: 'False'
TEST_ENVIRONMENT: 'False'
MAIL_USERNAME: ''
MAIL_FROM: admin@api-pgd.gov.br
MAIL_PORT: 25
Expand Down
4 changes: 2 additions & 2 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from util import check_permissions

ACCESS_TOKEN_EXPIRE_MINUTES = int(os.environ.get("ACCESS_TOKEN_EXPIRE_MINUTES"))
IS_PROD_ENVIRONMENT = os.environ.get("IS_PROD_ENVIRONMENT", 'False') == 'True'
TEST_ENVIRONMENT = os.environ.get("TEST_ENVIRONMENT", 'False') == 'True'

# ## INIT --------------------------------------------------

Expand All @@ -32,7 +32,7 @@
) as f:
description = f.read()

if not IS_PROD_ENVIRONMENT:
if TEST_ENVIRONMENT:
with open(
os.path.join(os.path.dirname(__file__), "docs", "environment.md"),
"r",
Expand Down

1 comment on commit 4abf1d9

@augusto-herrmann
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top! 🎉

Please sign in to comment.