Skip to content

Commit 4c320c6

Browse files
committed
Added some more fixtures
1 parent 6a0398f commit 4c320c6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

e2e/demo_project/step_definitions/shared_steps/api_common.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66
DELETE_ENDPOINT = "/posts/1"
77
POST_ENDPOINT = "/posts"
88

9+
@pytest.fixture
10+
def driver():
11+
return
12+
13+
14+
@pytest.fixture(scope="session")
15+
def api_response_container() -> dict:
16+
return dict()
17+
18+
19+
@pytest.fixture(scope="session")
20+
def context():
21+
return {}
22+
23+
24+
@pytest.fixture
25+
def header_content_type():
26+
return header_content_type
27+
28+
29+
@pytest.fixture(scope="session")
30+
def api_base_url():
31+
"""Fixture to set the API Base URL from environment variable"""
32+
return os.environ.get("API_BASE_URL")
933

1034
@pytest.fixture
1135
@given(parsers.re("I set api base url '(?P<api_base_url>.*)'"),

0 commit comments

Comments
 (0)