aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-12-19 13:32:34 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-12-19 13:32:34 +0100
commit791918039979d0743fd2ea4b9a5e74593ff96fd0 (patch)
treec8e6703325ae14e02d2f92e4f6658aa41a6f4701 /test
parente94368c75468e3e94382b12705e55d396249eaca (diff)
downloadbsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.tar.gz
bsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.tar.bz2
bsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.zip
query ast file structures and essential interfaces
Diffstat (limited to 'test')
-rw-r--r--test/graph/test_graph.py2
-rw-r--r--test/query/__init__.py0
-rw-r--r--test/query/ast/__init__.py0
-rw-r--r--test/query/ast/test_filter_.py28
-rw-r--r--test/query/test_validator.py30
-rw-r--r--test/triple_store/sparql/__init__.py0
-rw-r--r--test/triple_store/sparql/test_sparql.py (renamed from test/triple_store/test_sparql.py)4
7 files changed, 63 insertions, 1 deletions
diff --git a/test/graph/test_graph.py b/test/graph/test_graph.py
index 33cf6aa..0a3fd5b 100644
--- a/test/graph/test_graph.py
+++ b/test/graph/test_graph.py
@@ -192,6 +192,8 @@ class TestGraph(unittest.TestCase):
bsfs:unique "true"^^xsd:boolean .
'''))
+ def test_get(self):
+ raise NotImplementedError()
## main ##
diff --git a/test/query/__init__.py b/test/query/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/query/__init__.py
diff --git a/test/query/ast/__init__.py b/test/query/ast/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/query/ast/__init__.py
diff --git a/test/query/ast/test_filter_.py b/test/query/ast/test_filter_.py
new file mode 100644
index 0000000..cc815e3
--- /dev/null
+++ b/test/query/ast/test_filter_.py
@@ -0,0 +1,28 @@
+"""
+
+Part of the tagit test suite.
+A copy of the license is provided with the project.
+Author: Matthias Baumgartner, 2022
+"""
+# imports
+import unittest
+
+# bsfs imports
+
+# objects to test
+from bsfs.query.ast.filter_ import _Expression
+
+
+## code ##
+
+class TestExpression(unittest.TestCase):
+ def test_essentials(self):
+ raise NotImplementedError()
+
+
+## main ##
+
+if __name__ == '__main__':
+ unittest.main()
+
+## EOF ##
diff --git a/test/query/test_validator.py b/test/query/test_validator.py
new file mode 100644
index 0000000..0e88ad3
--- /dev/null
+++ b/test/query/test_validator.py
@@ -0,0 +1,30 @@
+"""
+
+Part of the tagit test suite.
+A copy of the license is provided with the project.
+Author: Matthias Baumgartner, 2022
+"""
+# imports
+import unittest
+
+# bsfs imports
+
+# objects to test
+from bsfs.query.validator import Filter
+
+
+## code ##
+
+class TestFilter(unittest.TestCase):
+ def test_parse(self):
+ raise NotImplementedError()
+
+ # FIXME: subtests for individual functions
+
+
+## main ##
+
+if __name__ == '__main__':
+ unittest.main()
+
+## EOF ##
diff --git a/test/triple_store/sparql/__init__.py b/test/triple_store/sparql/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/triple_store/sparql/__init__.py
diff --git a/test/triple_store/test_sparql.py b/test/triple_store/sparql/test_sparql.py
index 8d98749..0bf664a 100644
--- a/test/triple_store/test_sparql.py
+++ b/test/triple_store/sparql/test_sparql.py
@@ -14,7 +14,7 @@ from bsfs.namespace import ns
from bsfs.utils import errors, URI
# objects to test
-from bsfs.triple_store.sparql import SparqlStore
+from bsfs.triple_store.sparql.sparql import SparqlStore
## code ##
@@ -455,6 +455,8 @@ class TestSparqlStore(unittest.TestCase):
(rdflib.URIRef('http://example.com/me/entity#4321'), rdflib.URIRef(p_filesize.uri), rdflib.Literal(1234, datatype=rdflib.XSD.integer)),
})
+ def test_get(self):
+ raise NotImplementedError()
def test_exists(self):
# store setup