07a3ac8be168f626c92f2c066f9000ea969a11a0,src/python/pants/backend/python/rules/python_sources_test.py,UnstrippedPythonSourcesTest,test_filters_out_irrelevant_targets,#UnstrippedPythonSourcesTest#,134

Before Change


            UnstrippedPythonSources,
            Params(
                Targets(targets),
                create_options_bootstrapper(args=["--source-root-patterns=["src/python"]"]),
            ),
        )
        assert sorted(result.snapshot.files) == sorted(

After Change


                parent_directory="src/python", files=["j.java"], target_cls=NonPythonTarget
            ),
        ]
        bootstrapper = create_options_bootstrapper()
        with_resources = self.request_single_product(
            UnstrippedPythonSources,
            Params(UnstrippedPythonSourcesRequest(targets, include_resources=True), bootstrapper),
        )
        assert with_resources.snapshot.files == (
            "src/python/f.txt",
            "src/python/p.py",
            "src/python/r.txt",
        )
        without_resources = self.request_single_product(
            UnstrippedPythonSources,
            Params(UnstrippedPythonSourcesRequest(targets, include_resources=False), bootstrapper),
        )
        assert without_resources.snapshot.files == ("src/python/p.py",)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: UnstrippedPythonSourcesTest
Method Name: test_filters_out_irrelevant_targets


Project Name: pantsbuild/pants
Commit Name: 8e2d975972a3188d0a017bdc607c7c25b0bf9ac7
Time: 2020-08-07
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/internals/graph_test.py
Class Name: TestCodegen
Method Name: test_generate_sources


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