Skip to content
Snippets Groups Projects
Commit 296a5947 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-849: fixed test

parent 7d9c3101
No related branches found
No related tags found
3 merge requests!634WIP: COBALT commissioning delta,!513TMSS-849,!481Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
......@@ -212,6 +212,7 @@ class TestJSONUtils(unittest.TestCase):
for key, value in base_schema['definitions']['timestamp'].items():
self.assertEqual(value, resolved_user_schema['definitions'][host_port]['base_schema.json']['timestamp'][key])
for key, value in base_schema['definitions']['account'].items():
value = json.loads(json.dumps(value).replace('"#/definitions/', '"#/definitions/'+host_port+'/base_schema.json/'))
self.assertEqual(value, resolved_user_schema['definitions'][host_port]['base_schema.json']['account'][key])
self.assertTrue('extra_prop' in resolved_user_schema['properties']['user_account'])
self.assertEqual('very important', resolved_user_schema['properties']['user_account']['extra_prop'])
......
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