Skip to content

Commit

Permalink
Add test for parsing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Mar 6, 2024
1 parent ba7ae4d commit c71ecbf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unit/pybind/test_parser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import nmodl
from pathlib import Path
import pytest


def test_parse_directory():
"""
Make sure we raise an error when parsing a directory instead of a file
"""

with pytest.raises(RuntimeError):
nmodl.NmodlDriver().parse_file(str(Path(__file__).parent))

0 comments on commit c71ecbf

Please sign in to comment.