Skip to content
Snippets Groups Projects
Verified Commit 87a7a45c authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: fix tests in test_query

parent b0ca3f20
Branches
Tags
1 merge request!46TST: update tests for server issue https://gitlab.com/caosdb/caosdb-server/-/issues/136
Pipeline #30760 passed
......@@ -165,13 +165,15 @@ def test_query2():
def test_query3():
body = get_connection().retrieve(
entity_uri_segments=["Entity"], query_dict={
"query": None}, reconnect=True).read()
"query": "bla"}, reconnect=True).read()
print(body)
xml = etree.fromstring(body)
assert xml.xpath("/Response/TransactionBenchmark")
assert xml.xpath("/Response/Query")
assert xml.xpath("/Response/UserInfo")
assert xml.xpath("/Response/noscript")
assert 4 == len(xml)
assert xml.xpath("/Response/Error")
assert 5 == len(xml)
@mark.slow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment