File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,5 @@ Run tests in pipenv environment:
2020pipenv run python3 -m pytest
2121```
2222
23- Tests require a SCUTTLE API key with full permissions. This key should be the
24- contents of ` token.secret.txt ` which is to be placed in the test directory. Do
25- make sure it's in the gitignore.
23+ Tests require a SCUTTLE API key with full permissions. Tests will look for this
24+ key in the ` SCUTTLE_API_KEY ` environment variable.
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3+ import os
34import pytest
45import scuttle
56
6- TOKEN = None
7- with open ("token.secret.txt" , 'r' ) as token_file :
8- TOKEN = token_file .readline ().strip ()
7+ TOKEN = os .environ ['SCUTTLE_API_KEY' ]
98
109def test_something ():
1110 wiki = scuttle .scuttle ('en' , 1 )
You can’t perform that action at this time.
0 commit comments