ddee4ac4fa7a0affafe35bbcdc36d499dd2f0334,src/python/pants/engine/internals/graph_test.py,TestSpecsToAddresses,test_filesystem_specs_nonexistent_file,#TestSpecsToAddresses#,420

Before Change


        )

    def test_filesystem_specs_nonexistent_file(self) -> None:
        specs = FilesystemSpecs([FilesystemLiteralSpec("demo/fake.txt")])
        with pytest.raises(ExecutionError) as exc:
            self.request_single_product(
                AddressesWithOrigins, Params(specs, create_options_bootstrapper()),
            )
        assert "Unmatched glob from file arguments: "demo/fake.txt"" in str(exc.value)
        ignore_errors_result = self.request_single_product(
            AddressesWithOrigins,
            Params(specs, create_options_bootstrapper(args=["--owners-not-found-behavior=ignore"])),
        )
        assert not ignore_errors_result

    def test_filesystem_specs_no_owner(self) -> None:
        self.create_file("no_owners/f.txt")

After Change


        }

    def test_filesystem_specs_nonexistent_file(self) -> None:
        spec = FilesystemLiteralSpec("demo/fake.txt")
        with pytest.raises(ExecutionError) as exc:
            self.resolve_filesystem_specs([spec])
        assert "Unmatched glob from file arguments: "demo/fake.txt"" in str(exc.value)

        assert not self.resolve_filesystem_specs(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: ddee4ac4fa7a0affafe35bbcdc36d499dd2f0334
Time: 2020-08-07
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_nonexistent_file


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/bandit/rules_integration_test.py
Class Name: BanditIntegrationTest
Method Name: test_precise_file_args


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/flake8/rules_integration_test.py
Class Name: Flake8IntegrationTest
Method Name: test_precise_file_args