diff options
| author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-12-22 14:35:12 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 14:35:12 +1000 |
| commit | 0fd66cebef524416a83beef074eebc066696f2cd (patch) | |
| tree | 86f761e581ad752d1f262105a6c20edf7355ac24 | |
| parent | b82a5049b6096a014935787b6b1ff4e6aa43d376 (diff) | |
| download | rdflib-0fd66cebef524416a83beef074eebc066696f2cd.tar.gz | |
more guess_format tests
| -rw-r--r-- | test/test_parse_file_guess_format.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_parse_file_guess_format.py b/test/test_parse_file_guess_format.py index f08bf14c..1195aef8 100644 --- a/test/test_parse_file_guess_format.py +++ b/test/test_parse_file_guess_format.py @@ -22,6 +22,10 @@ from rdflib.util import guess_format class FileParserGuessFormatTest(unittest.TestCase): def test_guess_format(self) -> None: self.assertEqual(guess_format("example.trix"), "trix") + self.assertEqual(guess_format("local-file.jsonld"), "json-ld") + self.assertEqual(guess_format("local-file.json-ld"), "json-ld") + self.assertEqual(guess_format("/some/place/on/disk/example.json"), "json-ld") + self.assertEqual(guess_format("../../relative/place/on/disk/example.json"), "json-ld") def test_jsonld(self) -> None: g = Graph() |
