We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530722c commit 1f0bc6eCopy full SHA for 1f0bc6e
2 files changed
.gitignore
@@ -17,4 +17,5 @@ var/
17
*.egg
18
logs/
19
__pycache__/
20
-.pytest_cache/
+.pytest_cache/
21
+token.py
tests/test.py
@@ -1,13 +1,13 @@
1
"""Test for Geocaching Api integration."""
2
from geocachingapi import GeocachingApi, GeocachingStatus
3
+#For adding your token add a file call token.py to current folder and add TOKEN = "<your token here>"
4
+from .token import TOKEN
5
import asyncio
6
import pytest
7
8
@pytest.mark.asyncio
9
async def test():
10
status:GeocachingStatus = None
- token = "<insert token here>"
- api = GeocachingApi(token=token)
11
+ api = GeocachingApi(token=TOKEN)
12
status = await api.update()
- print(status.user.username)
13
assert(status.user.username is not None)
0 commit comments