Skip to content

Commit

Permalink
Add test for adding JSON-LD to guess_format()
Browse files Browse the repository at this point in the history
This is a follow-on patch to:
e778e94

Test was confirmed to pass by running this on the current `master`
branch, and confirmed to fail with e778e94 reverted.

    nosetests test/test_parse_file_guess_format.py

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Sep 10, 2021
1 parent fd935e2 commit 700f6e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_parse_file_guess_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@


class FileParserGuessFormatTest(unittest.TestCase):
def test_jsonld(self):
g = Graph()
self.assertIsInstance(g.parse("test/jsonld/1.1/manifest.jsonld"), Graph)

def test_ttl(self):
g = Graph()
self.assertIsInstance(g.parse("test/w3c/turtle/IRI_subject.ttl"), Graph)
Expand Down

0 comments on commit 700f6e6

Please sign in to comment.