select_gag_test.py 924 B

123456789101112131415161718192021222324252627282930
  1. import pytest
  2. from rescriptoon._actions import SelectGagAction
  3. @pytest.mark.parametrize(
  4. ("column_index", "factor_y", "gag_name", "target_engine_index", "description"),
  5. [
  6. (
  7. 4,
  8. -0.047,
  9. "elephant trunk",
  10. None,
  11. "select elephant trunk in battle @ all engines",
  12. ),
  13. (4, -0.047, "elephant trunk", 0, "select elephant trunk in battle @ engine #0"),
  14. (4, -0.047, "elephant trunk", 1, "select elephant trunk in battle @ engine #1"),
  15. (5, -0.047, "foghorn", 0, "select foghorn in battle @ engine #0"),
  16. ],
  17. )
  18. def test_description(
  19. column_index, factor_y, gag_name, target_engine_index, description
  20. ):
  21. action = SelectGagAction(
  22. column_index=column_index,
  23. factor_y=factor_y,
  24. gag_name=gag_name,
  25. target_engine_index=target_engine_index,
  26. )
  27. assert action.description == description