tests.engine package¶
Submodules¶
tests.engine.test_component module¶
-
class
TestPosition
[source]¶ Bases:
object
-
test_position_outmost
(coordinates: List[Tuple[int, int]], direction: Tuple[int, int], expected: Tuple[int, int])[source]¶ Test the Position outmost function
-
test_position_outmost_parameters
= [[[(0, 0), (1, 0), (0, 1), (1, 1), (-1, 0), (-1, -1), (-1, 1), (1, -1), (0, -1)], (1, 0), (1, 0)], [[(0, 0), (1, 0), (0, 1), (1, 1), (-1, 0), (-1, -1), (-1, 1), (1, -1), (0, -1)], (-1, 0), (-1, 0)], [[(0, 0), (1, 0), (0, 1), (1, 1), (-1, 0), (-1, -1), (-1, 1), (1, -1), (0, -1)], (0, -1), (0, -1)], [[(0, 0), (1, 0), (0, 1), (1, 1), (-1, 0), (-1, -1), (-1, 1), (1, -1), (0, -1)], (0, 1), (0, 1)]]¶
-
tests.engine.test_effect module¶
-
test_damage_effect
(stat_to_target, accuracy, damage, damage_type, mod_stat, mod_amount, potency)[source]¶
tests.engine.test_state module¶
-
test_set_state
(game_state: scripts.engine.internal.constant.GameState, _)[source]¶ Test changing the state
tests.engine.test_utility module¶
-
test_clamp
(value: Union[int, float], min_value: Union[int, float], max_value: Union[int, float])[source]¶
-
test_get_coordinates_from_shape
(benchmark, shape: ShapeType, size: int, direction: Tuple[int, int], expected: List[Tuple[int, int]])[source]¶
-
test_is_close
(current_pos: Tuple[float, float], target_pos: Tuple[float, float], delta: float)[source]¶
-
test_is_not_close
(current_pos: Tuple[float, float], target_pos: Tuple[float, float], delta: float)[source]¶