Skip to content
Snippets Groups Projects
Commit 48218a71 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files
parent 7b5662ab
No related branches found
No related tags found
No related merge requests found
Pipeline #52178 failed
......@@ -1291,7 +1291,8 @@ def test_143_white_space(num):
]:
with pytest.raises(TransactionError) as cm:
db.execute_query(query)
assert cm.value.msg == f'You typed "{num}". Empty spaces are not allowed in numbers. Did you mean "{num.replace(" ", "")}"?'
assert cm.value.msg == (f'You typed "{num}". Empty spaces are not allowed ' +
f'in numbers. Did you mean "{num.replace(" ", "")}"?')
def test_144():
......@@ -1529,3 +1530,22 @@ def test_263():
db.Record(name="1").retrieve()
assert len(exc.errors) == 1
assert exc.errors[0].msg == "Entity does not exist." # TODO Or whatever the message shall be.
@pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/264")
def test_264_accents_and_umlauts():
"""Test whether queries respect accents and
umlauts. https://gitlab.com/linkahead/linkahead-server/-/issues/264.
"""
# Insertes have to be possible with unique=True since the name differ in
# accents and umlauts.
rt_e = db.RecordType(name="Test").insert()
rt_ë = db.RecordType(name="Tëst").insert()
rt_è = db.RecordType(name="Tést").insert()
# Retrieves should be unique here, too.
for rt in [rt_e, rt_ë, rt_è]:
retrieved = db.get_entity_by_name(rt.name)
assert retrieved.id == rt.id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment