Skip to content

Commit 2c7993d

Browse files
author
John Backus
committed
check environment variable for api key
1 parent 6867c9b commit 2c7993d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/verifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TestBlockscore(unittest.TestCase):
99

1010
def setUp(self):
1111
try:
12-
self.client = blockscore.Client({'api_key': 'your_api_key'})
12+
self.client = blockscore.Client({'api_key': os.environ['BLOCKSCORE_API']})
1313
except KeyError:
1414
sys.stderr.write("To run tests, you must have a BLOCKSCORE_API environment variable with a test api key\n")
1515
sys.exit(2)

0 commit comments

Comments
 (0)