From 9bd4bcbb09fb5673e1f5eea49a45e86e73b4e157 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 6 Mar 2020 18:41:45 +0000 Subject: [PATCH] Added TODO for mongotransformer --- tests/filtertransformers/test_mongo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/filtertransformers/test_mongo.py b/tests/filtertransformers/test_mongo.py index dbc6914e0c..ad05d0b4cf 100644 --- a/tests/filtertransformers/test_mongo.py +++ b/tests/filtertransformers/test_mongo.py @@ -114,6 +114,8 @@ def test_operators(self): self.assertEqual(self.transform("NOT a<3"), {"a": {"$not": {"$lt": 3}}}) # TODO: {'$not': {'$eq': 'Ti'}} can be simplified to {'$ne': 'Ti'} + # TODO: THIS IS NOT A VALID MONGO QUERY!!! We should switch to $nor, but + # that may break the defined optimade operator precendence self.assertEqual( self.transform( 'NOT ( chemical_formula_hill = "Al" AND chemical_formula_anonymous = "A" OR '