diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5468dee3369b8b7b9f2eaa6552baa30c817abb35..8a7dec393efc620aa42325dd87808d9423f2f0f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,13 @@ stages: - test +test_api: + stage: test + image: python:latest + script: + # run the tests of the runkey classes + - python scripts/configdb_stripsRunkeys.py + test_configdb: stage: test diff --git a/scripts/configdb_stripsRunkeys.py b/scripts/configdb_stripsRunkeys.py index d7ad01939d892f05864a9ddf7021062450f6aa77..e98ba79582374ca0aa156ca84bc42c0b28e6e66c 100644 --- a/scripts/configdb_stripsRunkeys.py +++ b/scripts/configdb_stripsRunkeys.py @@ -601,7 +601,7 @@ class RunkeyHCC(RunkeyNode): >>> hcc {'type': 'HCC', 'payloads': [{'type': 'config', 'meta': True, 'data': {'itsdaq_number': '1', 'module_number': '0', 'hybrid_name': 'Y', 'rx_elink': ['0', '14'], 'tx_elink': '5', 'config': '', 'enable': 'True', 'locked': 'False'}, 'name': 'HCC1'}, {'type': 'enable', 'data': 'True'}, {'type': 'locked', 'data': 'False'}], 'children': [], 'id': '...'} >>> hcc.copy() - {'type': 'HCC', 'payloads': [{'type': 'config', 'data': "{'itsdaq_number': '1', 'module_number': '0', 'hybrid_name': 'Y', 'rx_elink': ['0', '14'], 'tx_elink': '5', 'config': '', 'enable': 'True', 'locked': 'False'}"}, {'type': 'enable', 'data': 'True'}, {'type': 'locked', 'data': 'False'}, {'reuse_id': '...'}], 'children': [], 'id': '...'} + {'type': 'HCC', 'payloads': [{'type': 'enable', 'data': 'True'}, {'type': 'locked', 'data': 'False'}, {'reuse_id': '...'}], 'children': [], 'id': '...'} ''' pls = self['payloads']