refactor: route calc through service layer
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from api.core.Auth import AlterState
|
||||
from services.calc_service import calculate
|
||||
|
||||
|
||||
def test_calculate_returns_character_calc_result(minimal_calc_config):
|
||||
state = AlterState('GF.swordman_male.weapon_master', 'token', {}, '0', 0)
|
||||
|
||||
result = calculate(state, minimal_calc_config)
|
||||
|
||||
assert isinstance(result, dict)
|
||||
assert set(['uuid', 'skills', 'info', 'suits', 'buffer']).issubset(result)
|
||||
Reference in New Issue
Block a user