Browse Source

Fix typo in unit test fakes data

Change-Id: Iaaf919258a2bd1088c7877d3307b3befdd89457c
changes/58/713458/2
Mathieu Bultel 2 years ago
parent
commit
fcf06401c5
  1. 6
      validations_libs/tests/fakes.py
  2. 4
      validations_libs/tests/test_validations_list.py
  3. 2
      validations_libs/tests/test_validations_show.py

6
validations_libs/tests/fakes.py

@ -17,13 +17,13 @@ VALIDATIONS_LIST = [{
'description': 'My Validation One Description',
'groups': ['prep', 'pre-deployment'],
'id': 'my_val1',
'name': 'My Validition One Name',
'name': 'My Validation One Name',
'parameters': {}
}, {
'description': 'My Validation Two Description',
'groups': ['prep', 'pre-introspection'],
'id': 'my_val2',
'name': 'My Validition Two Name',
'name': 'My Validation Two Name',
'parameters': {'min_value': 8}
}]
@ -140,7 +140,7 @@ VALIDATIONS_LOGS_CONTENTS_LIST = [{
VALIDATIONS_DATA = {'Description': 'My Validation One Description',
'Groups': ['prep', 'pre-deployment'],
'ID': 'my_val1',
'Name': 'My Validition One Name',
'Name': 'My Validation One Name',
'parameters': {}}
VALIDATIONS_STATS = {'Last execution date': '2019-11-25 13:40:14',

4
validations_libs/tests/test_validations_list.py

@ -33,8 +33,8 @@ class TestValidatorList(TestCase):
self.assertEqual(validations_list.list_validations(),
(self.column_name, [('my_val1',
'My Validition One Name',
'My Validation One Name',
['prep', 'pre-deployment']),
('my_val2',
'My Validition Two Name',
'My Validation Two Name',
['prep', 'pre-introspection'])]))

2
validations_libs/tests/test_validations_show.py

@ -35,7 +35,7 @@ class TestValidatorShow(TestCase):
data = {'Description': 'My Validation One Description',
'Groups': ['prep', 'pre-deployment'],
'ID': 'my_val1',
'Name': 'My Validition One Name',
'Name': 'My Validation One Name',
'parameters': {}}
data.update({'Last execution date': '2019-11-25 13:40:14',
'Number of execution': 'Total: 1, Passed: 1, Failed: 0'})

Loading…
Cancel
Save