pytest-api/tests/open_service/conftest.py

29 lines
634 B
Python
Raw Permalink Normal View History

2024-07-22 18:26:27 +00:00
# pylint: disable=line-too-long,unused-argument
2024-07-20 16:35:15 +00:00
import pytest
2024-07-22 18:26:27 +00:00
from apiclient.config import get_cfg
2024-07-20 16:35:15 +00:00
CFG = get_cfg('gw', force_refresh=True)
2024-07-20 16:35:15 +00:00
@pytest.fixture
def get_creatures_call(reset_open_session):
2024-07-20 16:35:15 +00:00
api_call = {
"method": "GET",
"url": CFG["api_url"] + '/rules/creature',
"headers": {},
2024-07-20 16:35:15 +00:00
"body": {}
}
return api_call
@pytest.fixture
def get_creature_call(reset_open_session):
2024-07-20 16:35:15 +00:00
api_call = {
"method": "GET",
"url": CFG["api_url"] + '/rules/creature',
"headers": {},
2024-07-20 16:35:15 +00:00
"body": {"creature": "badder"}
}
return api_call