Skip to content

Commit

Permalink
Fix Travis build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaase committed Mar 7, 2016
1 parent 8fd1452 commit c7973c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def get_credentials_from_env(self):
'''

try:
user = os.environ['POSTGRES_USER']
password = os.environ['POSTGRES_PASSWORD']
user = os.environ['{}_USER'.format(self.db_type.upper())]
password = os.environ['{}_PASSWORD'.format(self.db_type.upper())]
except KeyError as key:
message = 'Missing environment variable: {}'
raise unittest.SkipTest(message.format(key.args[0]))
Expand Down

0 comments on commit c7973c2

Please sign in to comment.