diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 12:19:58 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-02 12:19:58 +0100 |
commit | 87f437380c1dd8f420437cddc028c0f3174ee1c9 (patch) | |
tree | acebd2de636477cf6b498256a67f6863abd5a9c1 /test/graph/ac | |
parent | d70e78bbdd9d9b5727f18a82fce08f20bdbbba19 (diff) | |
download | bsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.tar.gz bsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.tar.bz2 bsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.zip |
Node getters in bsfs.Graph:
* Empty nodes instance (Graph.empty)
* Order-preserving get query (Graph.sorted)
* Collect common code in private Graph.__get
* Empty query in Graph.get
* Empty query in Graph.resolve.Filter
* Empty query in AC: filter_read
Diffstat (limited to 'test/graph/ac')
-rw-r--r-- | test/graph/ac/test_null.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/graph/ac/test_null.py b/test/graph/ac/test_null.py index e33d46a..544a01e 100644 --- a/test/graph/ac/test_null.py +++ b/test/graph/ac/test_null.py @@ -131,7 +131,10 @@ class TestNullAC(unittest.TestCase): ast.filter.Any(ns.bse.tag, ast.filter.Is('http://example.com/tag#4321')), ast.filter.Any(ns.bse.author, ast.filter.Equals('Me, Myself, and I'))) ac = NullAC(self.backend, self.user) + # NullAC returns query self.assertEqual(query, ac.filter_read(self.ent_type, query)) + # query can be none + self.assertIsNone(ac.filter_read(self.ent_type, None)) ## main ## |