예제 #1
0
def test_wrap_settings():
    fn = lambda _, settings: settings
    assert wrap_settings({'key': 'val'})(fn)(None, Settings({})) \
           == {'key': 'val'}
    assert wrap_settings({'key': 'new-val'})(fn)(None,
                                                 Settings({'key': 'val'})) == {
                                                     'key': 'new-val'
                                                 }
예제 #2
0
def test_wrap_settings(override, old, new):
    fn = lambda _, settings: settings
    assert wrap_settings(override)(fn)(None, Settings(old)) == new
예제 #3
0
파일: test_utils.py 프로젝트: 7oi/thefuck
def test_wrap_settings(override, old, new):
    fn = lambda _, settings: settings
    assert wrap_settings(override)(fn)(None, Settings(old)) == new
예제 #4
0
def test_wrap_settings():
    fn = lambda _, settings: settings
    assert wrap_settings({'key': 'val'})(fn)(None, Settings({})) \
           == {'key': 'val'}
    assert wrap_settings({'key': 'new-val'})(fn)(
        None, Settings({'key': 'val'})) == {'key': 'new-val'}