07a3ac8be168f626c92f2c066f9000ea969a11a0,src/python/pants/backend/python/rules/python_sources_test.py,StrippedPythonSourcesTest,test_filters_out_irrelevant_targets,#StrippedPythonSourcesTest#,69
Before Change
StrippedPythonSources,
Params(
Targets(targets),
create_options_bootstrapper(args=["--source-root-patterns=["src/python"]"]),
),
)
assert sorted(result.snapshot.files) == sorted(["p.py", "src/python/f.txt", "r.txt"])
After Change
parent_directory="src/python", files=["j.java"], target_cls=NonPythonTarget
),
]
bootstrapper = create_options_bootstrapper()
with_resources = self.request_single_product(
StrippedPythonSources,
Params(StrippedPythonSourcesRequest(targets, include_resources=True), bootstrapper,),
)
assert with_resources.snapshot.files == ("p.py", "r.txt", "src/python/f.txt")
without_resources = self.request_single_product(
StrippedPythonSources,
Params(StrippedPythonSourcesRequest(targets, include_resources=False), bootstrapper,),
)
assert without_resources.snapshot.files == ("p.py",)
class UnstrippedPythonSourcesTest(TestBase):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 07a3ac8be168f626c92f2c066f9000ea969a11a0
Time: 2020-06-24
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/python_sources_test.py
Class Name: StrippedPythonSourcesTest
Method Name: test_filters_out_irrelevant_targets
Project Name: pantsbuild/pants
Commit Name: 07a3ac8be168f626c92f2c066f9000ea969a11a0
Time: 2020-06-24
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/python_sources_test.py
Class Name: UnstrippedPythonSourcesTest
Method Name: test_filters_out_irrelevant_targets
Project Name: pantsbuild/pants
Commit Name: 1a00c522e29c3f1040ad6bfe615b57d17af0658e
Time: 2020-08-04
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/internals/graph_test.py
Class Name: TestSpecsToAddresses
Method Name: test_filesystem_specs_glob