6db9355ebc77853f02bc6aded82151375d113f9c,src/python/pants/backend/python/goals/package_pex_binary_integration_test.py,,test_warn_files_targets,#Any#Any#,36

Before Change


    rule_runner.create_file("src/py/project/app.py", "print("hello")")
    rule_runner.add_to_build_file(
        "src/py/project",
        dedent(
            \
            pex_binary(
                dependencies=["assets:files", "assets:relocated", "assets:resources"],
                entry_point="none",
            )
            
        ),
    )
    tgt = rule_runner.get_target(Address("src/py/project"))
    field_set = PexBinaryFieldSet.create(tgt)

After Change



def test_warn_files_targets(rule_runner: RuleRunner, caplog) -> None:
    rule_runner.set_options([], env_inherit={"PATH", "PYENV_ROOT", "HOME"})
    rule_runner.write_files(
        {
            "assets/f.txt": "",
            "assets/BUILD": dedent(
                \
                files(name="files", sources=["f.txt"])
                relocated_files(
                    name="relocated",
                    files_targets=[":files"],
                    src="assets",
                    dest="new_assets",
                )

                // Resources are fine.
                resources(name="resources", sources=["f.txt"])
                
            ),
            "src/py/project/__init__.py": "",
            "src/py/project/app.py": "print("hello")",
            "src/py/project/BUILD": dedent(
                \
                pex_binary(
                    dependencies=["assets:files", "assets:relocated", "assets:resources"],
                    entry_point="none",
                )
                
            ),
        }
    )
    tgt = rule_runner.get_target(Address("src/py/project"))
    field_set = PexBinaryFieldSet.create(tgt)

    assert not caplog.records
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 6db9355ebc77853f02bc6aded82151375d113f9c
Time: 2021-03-30
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/goals/package_pex_binary_integration_test.py
Class Name:
Method Name: test_warn_files_targets


Project Name: pantsbuild/pants
Commit Name: 3222b9728d9f07cbce611ba6c57ef0d640d033a6
Time: 2021-04-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/black/rules_integration_test.py
Class Name:
Method Name: test_works_with_python38


Project Name: pantsbuild/pants
Commit Name: 3222b9728d9f07cbce611ba6c57ef0d640d033a6
Time: 2021-04-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/black/rules_integration_test.py
Class Name:
Method Name: test_works_with_python39