f7b260e965e277d62d2f54847671d06b1763fb21,tests/python/pants_test/integration/build_ignore_integration_test.py,BuildIgnoreIntegrationTest,test_build_ignore_dependency,#BuildIgnoreIntegrationTest#,28
Before Change
def test_build_ignore_dependency(self) -> None:
with temporary_dir(root_dir=get_buildroot()) as tmpdir:
tmpdir_relative = Path(tmpdir).relative_to(get_buildroot())
Path(tmpdir, "dir1").mkdir()
Path(tmpdir, "dir1", "BUILD").write_text("files(sources=[])")
Path(tmpdir, "dir2").mkdir()
Path(tmpdir, "dir2", "BUILD").write_text(
After Change
assert f"{tmpdir}/dir" in no_ignore_result.stdout
def test_build_ignore_dependency(self) -> None:
sources = {
"dir1/BUILD": "files(sources=[])",
"dir2/BUILD": "files(sources=[], dependencies=["{tmpdir}/dir1"])",
}
with self.setup_tmpdir(sources) as tmpdir:
ignore_result = self.run_pants(
[f"--build-ignore={tmpdir}/dir1", "dependencies", f"{tmpdir}/dir2"]
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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/build_ignore_integration_test.py
Class Name: BuildIgnoreIntegrationTest
Method Name: test_build_ignore_dependency
Project Name: pantsbuild/pants
Commit Name: 1a1ffdcde387cd87b950db1723b1fdcf63875583
Time: 2016-03-27
Author: wangpeiyu@gmail.com
File Name: tests/python/pants_test/engine/exp/test_storage.py
Class Name: CacheTest
Method Name: setUp
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