f7b260e965e277d62d2f54847671d06b1763fb21,tests/python/pants_test/integration/log_output_integration_test.py,LogOutputIntegrationTest,test_completed_log_output,#LogOutputIntegrationTest#,29

Before Change



    def test_completed_log_output(self) -> None:
        build_root = get_buildroot()
        with temporary_dir(root_dir=build_root) as tmpdir:
            tmpdir_relative = self._prepare_sources(tmpdir, build_root)

            test_run_result = self.run_pants(
                [
                    "--no-dynamic-ui",
                    "--backend-packages=["pants.backend.python", "pants.backend.python.typecheck.mypy"]",
                    "-ldebug",
                    "typecheck",
                    f"{tmpdir_relative}/src/python/project",
                ]
            )

            assert "[DEBUG] Starting: Run MyPy on" in test_run_result.stderr
            assert "[DEBUG] Completed: Run MyPy on" in test_run_result.stderr

After Change



class LogOutputIntegrationTest(PantsIntegrationTest):
    def test_completed_log_output(self) -> None:
        sources = {
            "src/python/project/__init__.py": "",
            "src/python/project/lib.py": dedent(
                \
                def add(x: int, y: int) -> int:
                    return x + y
                
            ),
            "src/python/project/BUILD": "python_library()",
        }
        with self.setup_tmpdir(sources) as tmpdir:
            result = self.run_pants(
                [
                    "--no-dynamic-ui",
                    "--backend-packages=["pants.backend.python", "pants.backend.python.typecheck.mypy"]",
                    "-ldebug",
                    "typecheck",
                    f"{tmpdir}/src/python/project",
                ]
            )

        assert "[DEBUG] Starting: Run MyPy on" in result.stderr
        assert "[DEBUG] Completed: Run MyPy on" in result.stderr
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: f7b260e965e277d62d2f54847671d06b1763fb21
Time: 2020-08-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: tests/python/pants_test/integration/log_output_integration_test.py
Class Name: LogOutputIntegrationTest
Method Name: test_completed_log_output


Project Name: pantsbuild/pants
Commit Name: f7b260e965e277d62d2f54847671d06b1763fb21
Time: 2020-08-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: tests/python/pants_test/integration/build_ignore_integration_test.py
Class Name: BuildIgnoreIntegrationTest
Method Name: test_build_ignore_dependency


Project Name: pantsbuild/pants
Commit Name: f7b260e965e277d62d2f54847671d06b1763fb21
Time: 2020-08-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/run_python_binary_integration_test.py
Class Name: RunPythonBinaryIntegrationTest
Method Name: test_sample_script