Skip to content

Commit

Permalink
Merge pull request #5926: Pants: reclassify test utils in BUILD metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd authored Mar 10, 2023
2 parents 14e98ca + cc72ea2 commit a81d7d3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Added
to pants' use of PEX lockfiles. This is not a user-facing addition.
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926
Contributed by @cognifloyd

* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
Expand Down
4 changes: 3 additions & 1 deletion contrib/runners/orquesta_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ python_tests(
],
)

python_sources()
python_test_utils(
sources=["*.py", "!test_*.py"],
)
4 changes: 3 additions & 1 deletion st2client/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ __defaults__(
)
)

python_sources()
python_test_utils(
sources=["*.py"],
)
4 changes: 3 additions & 1 deletion st2common/tests/unit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ python_tests(
uses=["mongo", "rabbitmq"],
)

python_sources()
python_test_utils(
sources=["*.py", "!test_*.py"],
)
6 changes: 4 additions & 2 deletions st2tests/integration/orquesta/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
python_sources()

python_tests(
name="tests",
uses=["redis"],
)

python_test_utils(
sources=["*.py", "!test_*.py"],
)

0 comments on commit a81d7d3

Please sign in to comment.