pytest-api/tests/open_service/conftest.py

28 lines
585 B
Python
Raw Normal View History

2024-07-20 16:35:15 +00:00
import pytest
from apiclient.config import get_cfg
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