Skip to content

Commit 13591b3

Browse files
committed
Let the tests accept an existing TOKEN env var
1 parent 6c60dd8 commit 13591b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datalad_ebrains/tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import os
12
import pytest
23
from unittest.mock import patch
34

45

56
@pytest.fixture(scope="session", autouse=True)
67
def authenticate():
8+
if 'KG_AUTH_TOKEN' in os.environ:
9+
# we seem to have what we need
10+
yield
11+
return
12+
713
from datalad.api import ebrains_authenticate
814
token = ebrains_authenticate(
915
result_renderer='disabled',

0 commit comments

Comments
 (0)