Skip to content
Snippets Groups Projects

TEST: Test for linkahead-server#268

2 files
+ 10
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -1552,8 +1552,16 @@ def test_264_accents_and_umlauts():
@pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/266 🤯")
def test_266():
def test_266_emoji():
"""Emojis as payload"""
rt = db.RecordType(name="A nice 🤯 RecordType").insert()
assert rt.id > 0
assert "🤯" in rt.name
@pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/268")
def test_268_insert_nonexistent_file():
"""`db.File(path='IDoNotExist').insert()` leads to an unexpected server error."""
with pytest.raises(TransactionError) as tre:
db.File(path='IDoNotExist').insert()
assert repr(tre) == "File does not exist: IDoNotExist" # TODO Replace by proper string.
Loading