a4a114760a0be2028e82a98ab5f70c8f0e757faa,src/python/pants/base/deprecated_test.py,,test_resolve_conflicting_options,#,264

Before Change




def test_resolve_conflicting_options() -> None:
    resolve_options = partial(
        resolve_conflicting_options,
        old_option="my_opt",
        new_option="my_opt",
        old_scope="old-scope",
        new_scope="new-scope",
    )
    old_val = "ancient"
    new_val = "modern"
    old_default_rv = RankedValue(Rank.HARDCODED, old_val)
    new_default_rv = RankedValue(Rank.HARDCODED, new_val)

After Change



    assert option_resolved() == new_val
    assert option_resolved(old_configured=True) == old_val
    assert option_resolved(new_configured=True) == new_val

    // both configured -> raise an error
    with pytest.raises(ValueError) as e:
        option_resolved(old_configured=True, new_configured=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: a4a114760a0be2028e82a98ab5f70c8f0e757faa
Time: 2020-09-21
Author: stuhood@gmail.com
File Name: src/python/pants/base/deprecated_test.py
Class Name:
Method Name: test_resolve_conflicting_options


Project Name: pantsbuild/pants
Commit Name: 14759e1065e307c7760299670da30f64ffdbf783
Time: 2016-08-27
Author: stuhood@gmail.com
File Name: src/python/pants/engine/engine.py
Class Name: ConcurrentEngine
Method Name: reduce


Project Name: aertslab/pySCENIC
Commit Name: 5b824f9124e8690ce35118cb2ab8ecfe61fad8cc
Time: 2018-02-06
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/regulome.py
Class Name:
Method Name: derive_regulomes