mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
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
|
# readNGF
|
||||||
|
|
||||||
def test_readNGF_non_existant():
|
def test_readNGF_non_existant():
|
||||||
PGF = pgf.readNGF("./abc.ngf") # create empty grammar
|
with pytest.raises(FileNotFoundError):
|
||||||
assert PGF.categories == []
|
pgf.readNGF("./abc.ngf") # create empty grammar
|
||||||
os.remove("./abc.ngf") # cleanup
|
|
||||||
|
|
||||||
def test_readNGF_GF():
|
def test_readNGF_GF():
|
||||||
with pytest.raises(pgf.PGFError):
|
with pytest.raises(pgf.PGFError):
|
||||||
|
|||||||
Reference in New Issue
Block a user