1
0
forked from GitHub/gf-core

finally fix the test caused by the change in readNGF behaviour

This commit is contained in:
krangelov
2021-09-16 12:08:22 +02:00
parent 24a30b344e
commit f456f09054

View File

@@ -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):