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

TEST: Multipart encoding problems linkahead/linkahead-pylib#115

parent d3280bfd
Branches
Tags
No related merge requests found
Pipeline #48086 passed
......@@ -90,3 +90,17 @@ def test_gitlab_com_108():
tests = db.execute_query("FIND ENTITY test*", cache=False)
tests.delete()
print("deleted")
@pytest.mark.xfail(reason="Multipart encoding problem: "
"https://gitlab.com/linkahead/linkahead-pylib/-/issues/115")
def test_gitlab_com_115():
"""Mix of files and non-ascii entities may lead to unexpected server error.
See https://gitlab.com/linkahead/linkahead-pylib/-/issues/115
"""
file1 = db.File(file="/dev/null", path="/1").add_parent("Äh")
file2 = db.File(file="/dev/null", path="/2").add_parent("Äh")
rec1 = db.Record().add_parent("Äh").add_property(name="Äh").add_property("Oops. Ö")
cont = db.Container().extend([file1, file2, rec1]).insert(unique=False)
assert len(cont) == 4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment