start works on storage
This commit is contained in:
@ -19,9 +19,9 @@ def test_list():
|
||||
o = OptionDescription('od', '', [b])
|
||||
c = Config(o, session_id='test_non_persistent')
|
||||
c.cfgimpl_get_settings().remove('cache')
|
||||
assert 'test_non_persistent' in list_sessions()
|
||||
assert 'test_non_persistent' in list_sessions('config')
|
||||
del(c)
|
||||
assert 'test_non_persistent' not in list_sessions()
|
||||
assert 'test_non_persistent' not in list_sessions('config')
|
||||
|
||||
|
||||
def test_create_persistent():
|
||||
@ -43,7 +43,7 @@ def test_list_sessions_persistent():
|
||||
# storage is not persistent
|
||||
pass
|
||||
else:
|
||||
assert 'test_persistent' in list_sessions()
|
||||
assert 'test_persistent' in list_sessions('config')
|
||||
|
||||
|
||||
def test_delete_session_persistent():
|
||||
@ -55,9 +55,9 @@ def test_delete_session_persistent():
|
||||
# storage is not persistent
|
||||
pass
|
||||
else:
|
||||
assert 'test_persistent' in list_sessions()
|
||||
assert 'test_persistent' in list_sessions('config')
|
||||
delete_session('test_persistent')
|
||||
assert 'test_persistent' not in list_sessions()
|
||||
assert 'test_persistent' not in list_sessions('config')
|
||||
|
||||
|
||||
def test_create_persistent_retrieve():
|
||||
@ -77,7 +77,7 @@ def test_create_persistent_retrieve():
|
||||
c = Config(o, session_id='test_persistent', persistent=True)
|
||||
c.cfgimpl_get_settings().remove('cache')
|
||||
assert c.b is True
|
||||
assert 'test_persistent' in list_sessions()
|
||||
assert 'test_persistent' in list_sessions('config')
|
||||
delete_session('test_persistent')
|
||||
c = Config(o, session_id='test_persistent', persistent=True)
|
||||
c.cfgimpl_get_settings().remove('cache')
|
||||
|
Reference in New Issue
Block a user