Skip to content

Commit a87585c

Browse files
authored
Merge pull request #5931: Pants: reclassify test utils in BUILD metadata (part 2)
2 parents 3803450 + d11849e commit a87585c

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Added
1717
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
1818
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
1919
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928 #5929 #5930
20+
#5931
2021
Contributed by @cognifloyd
2122

2223
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805

st2actions/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ st2_component_python_distribution(
99
],
1010
dependencies=[
1111
# policies get wired up by metadata in st2common/st2common/policies/meta/*.yaml
12-
"st2actions/policies",
12+
"./st2actions/policies",
1313
# backwards compat API:
1414
# st2actions.runners.pythonrunner.Action moved to st2common.runners.base_action.Action
15-
"st2actions/runners/pythonrunner.py",
15+
"./st2actions/runners/pythonrunner.py",
1616
],
1717
)

st2auth/tests/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ __defaults__(
44
)
55
)
66

7-
python_sources()
7+
python_test_utils(
8+
sources=["*.py"],
9+
)

st2common/tests/integration/BUILD

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ __defaults__(
33
extend=True,
44
)
55

6-
python_sources()
7-
86
python_tests(
97
name="tests",
108
dependencies=[
@@ -13,3 +11,7 @@ python_tests(
1311
"conf/st2.tests1.conf:st2_tests_conf",
1412
],
1513
)
14+
15+
python_test_utils(
16+
sources=["*.py", "!test_*.py"],
17+
)

st2stream/tests/unit/controllers/v1/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ python_tests(
22
name="tests",
33
)
44

5-
python_sources()
5+
python_test_utils(
6+
sources=["*.py", "!test_*.py"],
7+
)

0 commit comments

Comments
 (0)