ae1b4e61d29361dc7596be066bb25be06e53a56f,src/python/pants/rules/core/lint_test.py,LintTest,test_multiple_targets_with_one_linter,#LintTest#,78

Before Change


            return LintResults([LintResult(exit_code=0, stdout=f"`{name}` passed", stderr="")])

        exit_code, stdout = self.run_lint_rule(
            targets=[
                FmtTest.make_hydrated_target_with_origin(name="good"),
                FmtTest.make_hydrated_target_with_origin(name="bad"),
            ],
            mock_linters=mock_linters,
        )
        assert exit_code == 127

After Change


        ]

    def test_multiple_targets_with_one_linter(self) -> None:
        good_target = FmtTest.make_hydrated_target_with_origin(name="good")
        bad_target = FmtTest.make_hydrated_target_with_origin(name="bad")
        exit_code, stdout = self.run_lint_rule(
            linters=[ConditionallySucceedsLinter], targets=[good_target, bad_target],
        )
        assert exit_code == ConditionallySucceedsLinter.exit_code(bad_target.target.adaptor.address)
        assert stdout.splitlines() == [
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: ae1b4e61d29361dc7596be066bb25be06e53a56f
Time: 2020-02-28
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_multiple_targets_with_one_linter


Project Name: pantsbuild/pants
Commit Name: ae1b4e61d29361dc7596be066bb25be06e53a56f
Time: 2020-02-28
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_multiple_targets_with_multiple_linters


Project Name: pantsbuild/pants
Commit Name: ae1b4e61d29361dc7596be066bb25be06e53a56f
Time: 2020-02-28
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_single_target_with_one_linter


Project Name: pantsbuild/pants
Commit Name: ae1b4e61d29361dc7596be066bb25be06e53a56f
Time: 2020-02-28
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint_test.py
Class Name: LintTest
Method Name: test_single_target_with_multiple_linters