filename must be a full path
This commit is contained in:
@ -323,13 +323,10 @@ async def test_filename(config_type):
|
||||
await cfg.option('a').value.set('/tmp')
|
||||
await cfg.option('a').value.set('/tmp/')
|
||||
await cfg.option('a').value.set('/tmp/text.txt')
|
||||
await cfg.option('a').value.set('tmp')
|
||||
await cfg.option('a').value.set('tmp/')
|
||||
await cfg.option('a').value.set('tmp/text.txt')
|
||||
await cfg.option('a').value.set('/tmp/with space.txt')
|
||||
await cfg.option('a').value.set('/tmp/with$.txt')
|
||||
with pytest.raises(ValueError):
|
||||
await cfg.option('a').value.set('/tmp/with space.txt')
|
||||
with pytest.raises(ValueError):
|
||||
await cfg.option('a').value.set('/tmp/with$.txt')
|
||||
await cfg.option('a').value.set('not starts with /')
|
||||
assert not await list_sessions()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user