Skip to content

Commit

Permalink
changed the os.environ to os.environ.get
Browse files Browse the repository at this point in the history
  • Loading branch information
lasersPew committed Jun 17, 2024
1 parent 9668c06 commit 27f2838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ class TestAuth:

timeout = 5

auth.login(os.environ['md_username'], os.environ['md_password'],
os.environ['client_id'], os.environ['client_secret'])
auth.login(os.environ.get('md_username'), os.environ.get('md_password'),
os.environ.get('client_id'), os.environ.get('client_secret'))

def test_GetUser(self):
user = self.user.me()

assert user.username == os.environ['md_username'], "This user is invalid"
assert user.username == os.environ.get('md_username', "This user is invalid"

def test_GetUserCustomLists(self):
user_id = self.user.me()
Expand Down

0 comments on commit 27f2838

Please sign in to comment.