コード例 #1
0
ファイル: test_konch.py プロジェクト: OdinsHat/konch
def test_reset_config():
    assert konch._cfg == konch.Config()
    konch.config({
        'banner': 'Foo bar'
    })
    konch.reset_config()
    assert konch._cfg == konch.Config()
コード例 #2
0
ファイル: test_konch.py プロジェクト: OdinsHat/konch
def teardown_function(func):
    konch.reset_config()
コード例 #3
0
ファイル: test_konch.py プロジェクト: zlksnk/konch
def test_reset_config():
    assert konch._cfg == konch.Config()
    konch.config({"banner": "Foo bar"})
    konch.reset_config()
    assert konch._cfg == konch.Config()
コード例 #4
0
ファイル: test_konch.py プロジェクト: zlksnk/konch
def teardown_function(func):
    konch.reset_config()
コード例 #5
0
ファイル: test_konch.py プロジェクト: sloria/konch
def test_reset_config():
    assert konch._cfg == konch.Config()
    konch.config({"banner": "Foo bar"})
    konch.reset_config()
    assert konch._cfg == konch.Config()