2024-07-20 16:35:15 +00:00
|
|
|
import pytest
|
|
|
|
from apiclient.config import get_cfg
|
|
|
|
|
|
|
|
|
2024-07-20 19:17:47 +00:00
|
|
|
CFG = get_cfg('gw', force_refresh=True)
|
2024-07-20 16:35:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
2024-07-20 19:17:47 +00:00
|
|
|
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',
|
2024-07-20 19:17:47 +00:00
|
|
|
"headers": {},
|
2024-07-20 16:35:15 +00:00
|
|
|
"body": {}
|
|
|
|
}
|
|
|
|
return api_call
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
2024-07-20 19:17:47 +00:00
|
|
|
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',
|
2024-07-20 19:17:47 +00:00
|
|
|
"headers": {},
|
2024-07-20 16:35:15 +00:00
|
|
|
"body": {"creature": "badder"}
|
|
|
|
}
|
|
|
|
return api_call
|