015a1e6ed5bfa9256c784d097277d2a54cadf511,src/python/pants/engine/target_test.py,,test_generate_subtarget,#,416

Before Change


        alias = "no_sources_tgt"
        core_fields = (Tags,)

    no_sources_tgt = NoSourcesTgt({Tags.alias: ["demo"]}, address=Address.parse("//:no_sources"))
    expected_no_sources_address = Address(
        "", relative_file_path="fake.txt", target_name="no_sources"
    )

After Change


    )

    // The full_file_name must match the filespec of the base target"s Sources field.
    with pytest.raises(ValueError) as exc:
        generate_subtarget(single_source_tgt, full_file_name="src/fortran/fake_file.f95")
    assert "does not match a file src/fortran/fake_file.f95" in str(exc.value)

    class MissingFieldsTarget(Target):
        alias = "missing_fields_tgt"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 015a1e6ed5bfa9256c784d097277d2a54cadf511
Time: 2020-08-06
Author: stuhood@gmail.com
File Name: src/python/pants/engine/target_test.py
Class Name:
Method Name: test_generate_subtarget


Project Name: pantsbuild/pants
Commit Name: 87f22614a3a97d93aaf570ba1c3eeefcbfdb8d5f
Time: 2021-03-01
Author: stuhood@gmail.com
File Name: tests/python/pants_test/init/test_logging.py
Class Name:
Method Name: test_log_filtering_by_rule


Project Name: Featuretools/featuretools
Commit Name: adfe173afdcb2a10f02f2b2ff1ec103691442539
Time: 2018-12-03
Author: inboxjeff@outlook.com
File Name: setup.py
Class Name:
Method Name: