Skip to content
Snippets Groups Projects
Commit d4599b2f authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#39 fikset error i test

parent 03fb89b1
No related branches found
No related tags found
1 merge request!40#38 #39 Eksporter og importer SOI til/fra fil
Pipeline #77471 passed
......@@ -102,7 +102,7 @@ class SerializeTest(unittest.TestCase):
"invalid_key": "All keys do not exist",
}
file = open(invalid_soi_file_path, "w")
file.write(str(invalid_serialization))
file.write(json.dumps(invalid_serialization))
file.close()
# Assert invalid serialization throws error on import
with self.assertRaises(ValueError) as error:
......
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