Commit 41924cf2 authored by Rémi Duraffort's avatar Rémi Duraffort

CI: fix failure when the yaml default format change

Check the dictionary instead of the string as the string can varry.
Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <>
parent 9a048b1b
Pipeline #5307 passed with stages
in 11 minutes and 9 seconds
......@@ -132,8 +132,7 @@ class TestMetaTypes(TestCaseWithFactory):
"result": "pass",
test_case = map_scanned_results(test_dict, job, {}, None)
metadata_yaml_ref = "{case: unit-test, definition: unit-test, measurement: '1234.5', result: pass}"
self.assertEqual(metadata_yaml_ref, test_case.metadata.strip())
self.assertEqual(yaml.load(test_case.metadata)["measurement"], "1234.5")
def test_case_as_url(self):
job = TestJob.from_yaml_and_user(self.factory.make_job_yaml(), self.user)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment