summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Car <nicholas.car@surroundaustralia.com>2021-12-22 14:35:12 +1000
committerGitHub <noreply@github.com>2021-12-22 14:35:12 +1000
commit0fd66cebef524416a83beef074eebc066696f2cd (patch)
tree86f761e581ad752d1f262105a6c20edf7355ac24
parentb82a5049b6096a014935787b6b1ff4e6aa43d376 (diff)
downloadrdflib-0fd66cebef524416a83beef074eebc066696f2cd.tar.gz
more guess_format tests
-rw-r--r--test/test_parse_file_guess_format.py4
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()