beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf,tests/test_config_scope.py,,test_typechange,#Any#,83

Before Change




def test_typechange(conf_scope):
    conf_scope({"a": "bar", "b": "foo", "c": 1})
    assert conf_scope.typechanges == {"a": (int, type("bar")),
                                      "b": (float, type("foo")),
                                      "c": (bool, int)}

After Change




def test_typechange(conf_scope):
    cfg = conf_scope({"a": "bar", "b": "foo", "c": 1})
    assert cfg.typechanges == {"a": (int, type("bar")),
                                      "b": (float, type("foo")),
                                      "c": (bool, int)}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: IDSIA/sacred
Commit Name: beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf
Time: 2015-02-08
Author: qwlouse@gmail.com
File Name: tests/test_config_scope.py
Class Name:
Method Name: test_typechange


Project Name: IDSIA/sacred
Commit Name: beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf
Time: 2015-02-08
Author: qwlouse@gmail.com
File Name: tests/test_config_scope.py
Class Name:
Method Name: test_fixing_nested_dicts


Project Name: IDSIA/sacred
Commit Name: beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf
Time: 2015-02-08
Author: qwlouse@gmail.com
File Name: tests/test_config_scope.py
Class Name:
Method Name: test_nested_typechange


Project Name: IDSIA/sacred
Commit Name: beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf
Time: 2015-02-08
Author: qwlouse@gmail.com
File Name: tests/test_config_scope.py
Class Name:
Method Name: test_fixing_values


Project Name: IDSIA/sacred
Commit Name: beb138b2fd7bf1f9fb19ad8a1dd425fe0848a3cf
Time: 2015-02-08
Author: qwlouse@gmail.com
File Name: tests/test_config_scope.py
Class Name:
Method Name: test_adding_values