Skip to content

Commit a81d7d3

Browse files
authored
Merge pull request #5926: Pants: reclassify test utils in BUILD metadata
2 parents 14e98ca + cc72ea2 commit a81d7d3

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Added
1616
to pants' use of PEX lockfiles. This is not a user-facing addition.
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
19-
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922
19+
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926
2020
Contributed by @cognifloyd
2121

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

contrib/runners/orquesta_runner/tests/unit/BUILD

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ python_tests(
1111
],
1212
)
1313

14-
python_sources()
14+
python_test_utils(
15+
sources=["*.py", "!test_*.py"],
16+
)

st2client/tests/BUILD

+3-1
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/unit/BUILD

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ python_tests(
1212
uses=["mongo", "rabbitmq"],
1313
)
1414

15-
python_sources()
15+
python_test_utils(
16+
sources=["*.py", "!test_*.py"],
17+
)

st2tests/integration/orquesta/BUILD

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
python_sources()
2-
31
python_tests(
42
name="tests",
53
uses=["redis"],
64
)
5+
6+
python_test_utils(
7+
sources=["*.py", "!test_*.py"],
8+
)

0 commit comments

Comments
 (0)