Commit 65eefd29 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][asset] Add missing tests for from_path with invalid path

parent 5b09a63d
......@@ -83,6 +83,10 @@ class TestAssetType:
AssetType.UNKNOWN: None,
}
def test_invalid_from_path(self):
with pytest.raises(RuntimeError):
AssetType.from_path("dummy")
def test_unknown_validation(self):
with pytest.raises(RuntimeError):
AssetType.UNKNOWN.validate({})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment