pytest-api/tests/open_service/conftest.py
Greg Gauthier a727c58cf3
All checks were successful
Pylint / build (3.12) (push) Successful in 9s
execute / build (3.12) (push) Successful in 25s
code cleanup for pylint
2024-07-22 19:26:27 +01:00

29 lines
634 B
Python

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