. is no more unvalable
This commit is contained in:
parent
a5b6352188
commit
b0462a1e80
|
@ -31,6 +31,18 @@ async def test_option_valid_name():
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
SymLinkOption(1, i)
|
SymLinkOption(1, i)
|
||||||
i = SymLinkOption("test1", i)
|
i = SymLinkOption("test1", i)
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#@pytest.mark.asyncio
|
||||||
|
#async def test_option_unvalid_name():
|
||||||
|
# with pytest.raises(ValueError):
|
||||||
|
# IntOption('test.', '')
|
||||||
|
# with pytest.raises(ValueError):
|
||||||
|
# IntOption('test.val', '')
|
||||||
|
# with pytest.raises(ValueError):
|
||||||
|
# IntOption('.test', '')
|
||||||
|
# with pytest.raises(ValueError):
|
||||||
|
# OptionDescription('.test', '', [])
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|
|
@ -40,6 +40,8 @@ submulti = 2
|
||||||
def valid_name(name):
|
def valid_name(name):
|
||||||
if not isinstance(name, str):
|
if not isinstance(name, str):
|
||||||
return False
|
return False
|
||||||
|
# if '.' in name:
|
||||||
|
# return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue