forked from GitHub/gf-core
finally fix the test caused by the change in readNGF behaviour
This commit is contained in:
@@ -47,9 +47,8 @@ def test_bootNGF_existing(NGF):
|
||||
# readNGF
|
||||
|
||||
def test_readNGF_non_existant():
|
||||
PGF = pgf.readNGF("./abc.ngf") # create empty grammar
|
||||
assert PGF.categories == []
|
||||
os.remove("./abc.ngf") # cleanup
|
||||
with pytest.raises(FileNotFoundError):
|
||||
pgf.readNGF("./abc.ngf") # create empty grammar
|
||||
|
||||
def test_readNGF_GF():
|
||||
with pytest.raises(pgf.PGFError):
|
||||
|
||||
Reference in New Issue
Block a user