f7b260e965e277d62d2f54847671d06b1763fb21,src/python/pants/backend/python/rules/run_python_binary_integration_test.py,RunPythonBinaryIntegrationTest,test_sample_script,#RunPythonBinaryIntegrationTest#,13

Before Change


        with temporary_dir(root_dir=get_buildroot()) as tmpdir:
            tmpdir_relative = Path(tmpdir).relative_to(get_buildroot())

            src_root1 = Path(tmpdir, "src_root1/project")
            src_root1.mkdir(parents=True)
            (src_root1 / "app.py").write_text(
                dedent(
                    \

After Change


            ),
            "src_root2/utils/BUILD": "python_library()",
        }
        with self.setup_tmpdir(sources) as tmpdir:
            result = self.run_pants(
                [
                    "--backend-packages=pants.backend.python",
                    f"--source-root-patterns=["/{tmpdir}/src_root1", "/{tmpdir}/src_root2"]",
                    "--pants-ignore=__pycache__",
                    "--pants-ignore=/src/python",
                    "run",
                    f"{tmpdir}/src_root1/project/app.py",
                ]
            )

        assert "Hola, mundo.\n" in result.stderr
        assert result.stdout == "HELLO WORLD.\n"
        assert result.exit_code == 23
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


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: graphbrain/graphbrain
Commit Name: 110a6ee3948d95fce0b52ffefca4b14e963d1b28
Time: 2020-12-24
Author: telmo@telmomenezes.net
File Name: scripts/test-alpha.py
Class Name:
Method Name: test_alpha