Skip to content
Snippets Groups Projects
Verified Commit b76520f9 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

TEST: Test for linkahead-server#268

parent 4f9d9c08
No related branches found
No related tags found
1 merge request!79TEST: Test for linkahead-server#268
Pipeline #52524 passed
......@@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Test for miscellaneous *-too-long errors.
* Test for [caosdb-server#263](https://gitlab.com/linkahead/linkahead-server/-/issues/263): Unexpected server error when attempting to retrieve internal ROLE
entities.
* Test for [caosdb-server#268](https://gitlab.com/linkahead/linkahead-server/-/issues/268): Unexpected Server Error when non-existent file shall be inserted.
### Changed (for changes in existing functionality)
......
......@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment