mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 03:35:27 -07:00
finally fix the test caused by the change in readNGF behaviour
This commit is contained in:
1 parent
24a30b344e
commit
f456f09054
1 file changed
+2
-3
@@ -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