Skip to content

Commit

Permalink
fix checking venue to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Aug 24, 2023
1 parent 39a61f0 commit 9de25e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add_collection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def parse_args():


def get_username_and_password(venue):
if venue == "UAT":
if venue.lower() == "uat":
return os.environ.get("UAT_USERNAME"), os.environ.get("UAT_PASSWORD")
elif venue == "OPS":
elif venue.lower() == "ops":
return os.environ.get('OPS_USERNAME'), os.environ.get('OPS_PASSWORD')
else:
raise ValueError("Invalid venue")
Expand Down

0 comments on commit 9de25e3

Please sign in to comment.