Skip to content

Commit fd08dcd

Browse files
committed
Move pytest_main definition to util.py file
1 parent 17ea834 commit fd08dcd

40 files changed

Lines changed: 221 additions & 131 deletions

src/software/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ py_library(
126126
srcs = ["conftest.py"],
127127
deps = [
128128
"//software/gameplay_tests:field_test_fixture",
129+
"//software/gameplay_tests:util",
129130
"//software/gameplay_tests:simulated_test_fixture",
130131
],
131132
)

src/software/ai/hl/stp/play/ball_placement/ball_placement_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
from software.gameplay_tests.validation.robot_enters_region import (
1313
RobotEventuallyExitsRegion,
1414
)
15-
from software.gameplay_tests.simulated_test_fixture import (
16-
pytest_main,
17-
)
15+
from software.gameplay_tests.util import pytest_main
1816

1917

2018
@pytest.mark.parametrize(

src/software/ai/hl/stp/play/crease_defense/crease_defense_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
from proto.import_all_protos import *
44
from proto.message_translation.tbots_protobuf import create_world_state
55
from proto.ssl_gc_common_pb2 import Team
6-
from software.gameplay_tests.simulated_test_fixture import (
7-
pytest_main,
8-
)
6+
from software.gameplay_tests.util import pytest_main
97
from software.gameplay_tests.validation.robot_speed_threshold import (
108
RobotSpeedEventuallyBelowThreshold,
119
)

src/software/ai/hl/stp/play/defense/defense_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
)
99
from proto.message_translation.tbots_protobuf import create_world_state
1010
from proto.ssl_gc_common_pb2 import Team
11-
from software.gameplay_tests.simulated_test_fixture import (
12-
pytest_main,
13-
)
11+
from software.gameplay_tests.util import pytest_main
1412

1513

1614
@pytest.mark.parametrize(

src/software/ai/hl/stp/play/enemy_ball_placement/enemy_ball_placement_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import software.python_bindings as tbots_cpp
44
from proto.play_pb2 import PlayName
55
from software.gameplay_tests.validation.robot_enters_placement_region import *
6-
from software.gameplay_tests.simulated_test_fixture import (
7-
pytest_main,
8-
)
6+
from software.gameplay_tests.util import pytest_main
97
from proto.message_translation.tbots_protobuf import create_world_state
108
from proto.ssl_gc_common_pb2 import Team
119

src/software/ai/hl/stp/play/enemy_free_kick/enemy_free_kick_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
)
1414
from proto.message_translation.tbots_protobuf import create_world_state
1515
from proto.ssl_gc_common_pb2 import Team
16-
from software.gameplay_tests.simulated_test_fixture import (
17-
pytest_main,
18-
)
16+
from software.gameplay_tests.util import pytest_main
1917

2018

2119
@pytest.mark.parametrize(

src/software/ai/hl/stp/play/example/example_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
from proto.ssl_gc_common_pb2 import Team
88
from proto.play_pb2 import PlayName
99
from proto.import_all_protos import Command
10-
from software.gameplay_tests.simulated_test_fixture import (
11-
pytest_main,
12-
)
10+
from software.gameplay_tests.util import pytest_main
1311

1412

1513
def test_example_play(simulated_test_runner):

src/software/ai/hl/stp/play/free_kick/free_kick_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
from software.gameplay_tests.validation.ball_kicked_in_direction import (
1717
BallEventuallyKickedInDirection,
1818
)
19-
from software.gameplay_tests.simulated_test_fixture import (
20-
pytest_main,
21-
)
19+
from software.gameplay_tests.util import pytest_main
2220

2321

2422
@pytest.mark.parametrize(

src/software/ai/hl/stp/play/halt_play/halt_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
from software.gameplay_tests.validation.robot_speed_threshold import *
33
from proto.message_translation.tbots_protobuf import create_world_state
44
from proto.ssl_gc_common_pb2 import Team
5-
from software.gameplay_tests.simulated_test_fixture import (
6-
pytest_main,
7-
)
5+
from software.gameplay_tests.util import pytest_main
86

97

108
# TODO issue #2599 - Remove Duration parameter from test

src/software/ai/hl/stp/play/kickoff_enemy/kickoff_enemy_play_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
from proto.message_translation.tbots_protobuf import create_world_state
1414
from proto.import_all_protos import Command
1515
from proto.ssl_gc_common_pb2 import Team
16-
from software.gameplay_tests.simulated_test_fixture import (
17-
pytest_main,
18-
)
16+
from software.gameplay_tests.util import pytest_main
1917

2018

2119
def test_kickoff_enemy_play(simulated_test_runner):

0 commit comments

Comments
 (0)