diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 13b3056779219fbf68e9069ff9908f1ab162c22b..8bedd0250a9b256c12edaf6c0155b7eb39c64d4f 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -1483,6 +1483,7 @@ def test_235_long_name(): assert not isinstance(exc, db.HTTPServerError) # TODO more specific error should be asserted + @pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/248") def test_248(): """Querying for entities with property fails if using ID.""" @@ -1491,3 +1492,16 @@ def test_248(): rec = db.Record().add_parent(rt).add_property(prop, value=23).insert() results = db.execute_query(f"FIND Entity with {prop.id}") assert len(results) == 1 + + +@pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/253") +def test_253(): + """Value in string queries may not start with large number of digits.""" + test_strings = [ + "0123456789", + "hello" + "0123456789" * 5 + "world", + "0123456789" * 5 + "world", + ] + for string in test_strings: + results = db.execute_query(f"FIND Entity with prop={string}") + assert len(results) == 0