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

WIP: Handling illegal characters.

parent 4ef559b2
No related branches found
No related tags found
2 merge requests!100WIP: Filling XLSX: Seems to be working.,!93Filling XLSX: Everything except multiple choice.
Pipeline #48906 failed
{
"Training": {
"date": "2023-01-01",
"url": "char: \u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009",
"subjects": [
"\u000a\u000b\u000c\u000d\u000e\u000f",
"\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017",
"\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f",
"\u0020\u0021\u0022\u0023\u0024\u0025\u0026\u0027",
"\u0028\u0029\u002a\u002b\u002c\u002d\u002e\u002f"
]
},
"Person": {
"family_name": "Steve:",
"given_name": "Stevie",
"Organisation": "IMF"
}
}
......@@ -130,12 +130,16 @@ def test_fill_xlsx():
template_file=rfp("data/multiple_refs_template.xlsx"),
known_good=rfp("data/multiple_refs_data.xlsx"),
schema=rfp("data/multiple_refs_schema.json"))
fill_and_compare(json_file=rfp("data/indirect_data.json"),
template_file=rfp("data/indirect_template.xlsx"),
known_good=rfp("data/indirect_data.xlsx"),
schema=rfp("data/indirect_schema.json"))
fill_and_compare(json_file=rfp("data/simple_data_ascii_chars.json"),
template_file=rfp("data/simple_template.xlsx"),
known_good=rfp("data/simple_data.xlsx"),
schema=rfp("data/simple_schema.json"))
def test_errors():
with pytest.raises(AssertionError) as exc:
......
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