Skip to content

Commit 070e2f8

Browse files
committed
Move pytest validations to its own directory
1 parent 0de03a7 commit 070e2f8

63 files changed

Lines changed: 680 additions & 374 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/software/ai/hl/stp/play/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ py_test(
169169
],
170170
deps = [
171171
"//software:conftest",
172-
"//software/simulated_tests:validation",
172+
"//software/simulated_tests/pytest_validations:all_validations",
173173
requirement("pytest"),
174174
],
175175
)
@@ -214,7 +214,7 @@ py_test(
214214
],
215215
deps = [
216216
"//software:conftest",
217-
"//software/simulated_tests:validation",
217+
"//software/simulated_tests/pytest_validations:all_validations",
218218
requirement("pytest"),
219219
],
220220
)
@@ -270,7 +270,7 @@ py_test(
270270
"//proto:software_py_proto",
271271
"//proto:tbots_py_proto",
272272
"//software:conftest",
273-
"//software/simulated_tests:validation",
273+
"//software/simulated_tests/pytest_validations:all_validations",
274274
requirement("pytest"),
275275
],
276276
)

src/software/ai/hl/stp/play/ball_placement/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ py_test(
4040
tags = ["exclusive"],
4141
deps = [
4242
"//software:conftest",
43-
"//software/simulated_tests:validation",
43+
"//software/simulated_tests/pytest_validations:all_validations",
4444
requirement("pytest"),
4545
],
4646
)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
from proto.import_all_protos import *
66
from proto.ssl_gc_common_pb2 import Team
77
from proto.message_translation.tbots_protobuf import create_world_state
8-
from software.simulated_tests.ball_enters_region import (
8+
from software.simulated_tests.pytest_validations.ball_enters_region import (
99
BallAlwaysStaysInRegion,
1010
BallEventuallyEntersRegion,
1111
)
12-
from software.simulated_tests.robot_enters_region import RobotEventuallyExitsRegion
12+
from software.simulated_tests.pytest_validations.robot_enters_region import (
13+
RobotEventuallyExitsRegion,
14+
)
1315
from software.simulated_tests.simulated_test_fixture import (
1416
pytest_main,
1517
)

src/software/ai/hl/stp/play/crease_defense/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ py_test(
3939
],
4040
deps = [
4141
"//software:conftest",
42-
"//software/simulated_tests:validation",
42+
"//software/simulated_tests/pytest_validations:all_validations",
4343
requirement("pytest"),
4444
],
4545
)

src/software/ai/hl/stp/play/defense/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ py_test(
4242
],
4343
deps = [
4444
"//software:conftest",
45-
"//software/simulated_tests:validation",
45+
"//software/simulated_tests/pytest_validations:all_validations",
4646
requirement("pytest"),
4747
],
4848
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import software.python_bindings as tbots_cpp
44
from proto.play_pb2 import Play, PlayName
5-
from software.simulated_tests.ball_enters_region import *
6-
from software.simulated_tests.friendly_has_ball_possession import (
5+
from software.simulated_tests.pytest_validations.ball_enters_region import *
6+
from software.simulated_tests.pytest_validations.friendly_has_ball_possession import (
77
FriendlyEventuallyHasBallPossession,
88
)
99
from proto.message_translation.tbots_protobuf import create_world_state

src/software/ai/hl/stp/play/enemy_ball_placement/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ py_test(
3131
tags = ["exclusive"],
3232
deps = [
3333
"//software:conftest",
34-
"//software/simulated_tests:validation",
34+
"//software/simulated_tests/pytest_validations:all_validations",
3535
requirement("pytest"),
3636
],
3737
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import software.python_bindings as tbots_cpp
44
from proto.play_pb2 import Play, PlayName
5-
from software.simulated_tests.robot_enters_placement_region import *
5+
from software.simulated_tests.pytest_validations.robot_enters_placement_region import *
66
from software.simulated_tests.simulated_test_fixture import (
77
pytest_main,
88
)

src/software/ai/hl/stp/play/enemy_free_kick/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ py_test(
4545
],
4646
deps = [
4747
"//software:conftest",
48-
"//software/simulated_tests:validation",
48+
"//software/simulated_tests/pytest_validations:all_validations",
4949
requirement("pytest"),
5050
],
5151
)

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
import software.python_bindings as tbots_cpp
44
from proto.play_pb2 import Play, PlayName
55

6-
from software.simulated_tests.or_validation import OrValidation
6+
from software.simulated_tests.pytest_validations.or_validation import OrValidation
77

8-
from software.simulated_tests.ball_moves_from_rest import (
9-
BallEventuallyMovesFromRest,
10-
)
11-
from software.simulated_tests.friendly_team_scored import *
12-
from software.simulated_tests.ball_enters_region import *
13-
from software.simulated_tests.robot_enters_region import (
8+
from software.simulated_tests.pytest_validations.friendly_team_scored import *
9+
from software.simulated_tests.pytest_validations.ball_enters_region import *
10+
from software.simulated_tests.pytest_validations.robot_enters_region import (
1411
RobotEventuallyEntersRegion,
1512
RobotNeverEntersRegion,
1613
)
@@ -136,11 +133,14 @@ def setup(*args):
136133
RobotNeverEntersRegion(
137134
regions=[tbots_cpp.Circle(ball_initial_pos, 0.05)]
138135
),
139-
BallEventuallyMovesFromRest(position=ball_initial_pos),
136+
BallEventuallyExitsRegion(
137+
regions=[tbots_cpp.Circle(ball_initial_pos, 0.05)]
138+
),
140139
]
141140
)
142141
]
143142
]
143+
144144
# Eventually Validation
145145
eventually_validation_sequence_set = [
146146
[RobotEventuallyEntersRegion(regions=[tbots_cpp.Circle(ball_initial_pos, 1)])]

0 commit comments

Comments
 (0)