Rewrite tests

This commit is contained in:
Jonas Zeunert
2024-04-27 14:58:50 +02:00
parent 8c3d678ffb
commit 4561e0399b
3 changed files with 20 additions and 3 deletions

View File

@@ -1,4 +1,10 @@
from ergogen_footprint_converter.parser import Parser
import pytest
from pathlib import Path
def test_parser_filenotexists():
with pytest.raises(Exception, match=r".*Given path is not a file.*"):
Parser(Path("nop"))
def test_parser():
None