Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 15f4596

Browse files
committed
Forgot the import
1 parent 20d13fd commit 15f4596

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/conftest.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
import os
23
from pytest_cases import fixture
34

45
from pycti import (
@@ -14,16 +15,20 @@
1415
def api_client(pytestconfig):
1516
if pytestconfig.getoption("--drone"):
1617
api_url = os.getenv("OPENCTI_API_URL", "http://opencti:4000")
17-
api_token = os.getenv("OPENCTI_API_TOKEN", "bfa014e0-e02e-4aa6-a42b-603b19dcf159")
18+
api_token = os.getenv(
19+
"OPENCTI_API_TOKEN", "bfa014e0-e02e-4aa6-a42b-603b19dcf159"
20+
)
1821
else:
1922
api_url = os.getenv("OPENCTI_API_URL", "http://localhost:4000")
20-
api_token = os.getenv("OPENCTI_API_TOKEN", "d434ce02-e58e-4cac-8b4c-42bf16748e84")
23+
api_token = os.getenv(
24+
"OPENCTI_API_TOKEN", "d434ce02-e58e-4cac-8b4c-42bf16748e84"
25+
)
2126

2227
return OpenCTIApiClient(
23-
api_url,
24-
api_token,
25-
ssl_verify=False,
26-
)
28+
api_url,
29+
api_token,
30+
ssl_verify=False,
31+
)
2732

2833

2934
@fixture(scope="session")

0 commit comments

Comments
 (0)