diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 16:40:43 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 16:40:43 +0100 |
commit | 6b9379d75198082054c35e44bc2cd880353a7485 (patch) | |
tree | 1c6f88b10eb4b532a26f2a9dc26bc938e81e7032 /test | |
parent | 28a021483c13e974e00b6159f0653b0727df9d10 (diff) | |
download | bsfs-6b9379d75198082054c35e44bc2cd880353a7485.tar.gz bsfs-6b9379d75198082054c35e44bc2cd880353a7485.tar.bz2 bsfs-6b9379d75198082054c35e44bc2cd880353a7485.zip |
hardening
Diffstat (limited to 'test')
-rw-r--r-- | test/graph/test_resolve.py | 2 | ||||
-rw-r--r-- | test/query/test_validator.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/graph/test_resolve.py b/test/graph/test_resolve.py index 0223c49..accb565 100644 --- a/test/graph/test_resolve.py +++ b/test/graph/test_resolve.py @@ -25,7 +25,7 @@ class TestFilter(unittest.TestCase): """ - def test_call(self): + def test_call(self): # tests resolve implicitly schema = bsc.from_string(''' prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> diff --git a/test/query/test_validator.py b/test/query/test_validator.py index ca93118..bbfd2e6 100644 --- a/test/query/test_validator.py +++ b/test/query/test_validator.py @@ -70,7 +70,7 @@ class TestFilter(unittest.TestCase): ''') self.validate = Filter(self.schema) - def test_call(self): + def test_call(self): # tests validate implicitly # root_type must be a _schema.Node self.assertRaises(TypeError, self.validate, 1234, None) self.assertRaises(TypeError, self.validate, '1234', None) @@ -309,7 +309,7 @@ class TestFetch(unittest.TestCase): ''') self.validate = Fetch(self.schema) - def test_call(self): + def test_call(self): # tests validate implicitly # call accepts correct expressions self.assertTrue(self.validate(self.schema.node(ns.bsfs.Entity), ast.fetch.Fetch(ns.bse.tag, ast.fetch.Value(ns.bse.label, 'value')))) |