copy/deepcopy should duplicate informations
This commit is contained in:
@ -59,6 +59,16 @@ async def test_copy():
|
||||
assert not await list_sessions()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_copy_information():
|
||||
od = make_description()
|
||||
async with await Config(od) as cfg:
|
||||
await cfg.information.set('key', 'value')
|
||||
async with await cfg.config.copy() as ncfg:
|
||||
assert await ncfg.information.get('key') == 'value'
|
||||
assert not await list_sessions()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_copy_force_store_value():
|
||||
od = make_description()
|
||||
|
Reference in New Issue
Block a user