Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3c81196

Browse files
committed
fix auth syntax
1 parent 24a7185 commit 3c81196

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_sanity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
bearer_token = os.environ['BEARER_TOKEN']
2323
except:
2424
try:
25-
api_keys = read_token_file('tests/oauth_creds') +
26-
read_token_file('tests/consumer_creds')
25+
api_keys = (read_token_file('tests/oauth_creds') +
26+
read_token_file('tests/consumer_creds'))
2727
with open('tests/bearer_token')as f:
28-
bearer_token = f.readline()
28+
bearer_token = f.readline().strip()
2929
except Exception as e:
3030
sys.stderr.write("ERROR: could not find API keys neither as environment variable nor as local tests/oauth_creds, tests/consumer_creds and tests/bearer_token files")
3131
exit(1)

0 commit comments

Comments
 (0)