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:
20
20
pipenv run python3 -m pytest
21
21
```
22
22
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 1
1
#!/usr/bin/env python3
2
2
3
+ import os
3
4
import pytest
4
5
import scuttle
5
6
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' ]
9
8
10
9
def test_something ():
11
10
wiki = scuttle .scuttle ('en' , 1 )
You can’t perform that action at this time.
0 commit comments