|
32 | 32 | FIXTURES_PACK = 'generic' |
33 | 33 |
|
34 | 34 | TEST_MODELS = { |
35 | | - 'actions': [ |
36 | | - 'action_4_action_context_param.yaml', |
37 | | - 'action_system_default.yaml', |
38 | | - 'action_user_default.yaml' |
39 | | - ], |
| 35 | + 'actions': ['action_4_action_context_param.yaml', 'action_system_default.yaml'], |
40 | 36 | 'runners': ['testrunner1.yaml'] |
41 | 37 | } |
42 | 38 |
|
|
48 | 44 | class ParamsUtilsTest(DbTestCase): |
49 | 45 | action_db = FIXTURES['actions']['action_4_action_context_param.yaml'] |
50 | 46 | action_system_default_db = FIXTURES['actions']['action_system_default.yaml'] |
51 | | - action_user_default_db = FIXTURES['actions']['action_user_default.yaml'] |
52 | 47 | runnertype_db = FIXTURES['runners']['testrunner1.yaml'] |
53 | 48 |
|
54 | 49 | def test_get_finalized_params(self): |
@@ -119,23 +114,6 @@ def test_get_finalized_params_system_values(self): |
119 | 114 | self.assertEqual(action_params.get('actionstr'), 'foo') |
120 | 115 | self.assertEqual(action_params.get('actionnumber'), 1.0) |
121 | 116 |
|
122 | | - def test_get_finalized_params_user_values(self): |
123 | | - KeyValuePair.add_or_update(KeyValuePairDB(name='stanley:foo', value='kabaali', |
124 | | - scope='user')) |
125 | | - params = { |
126 | | - 'runnerint': 555 |
127 | | - } |
128 | | - liveaction_db = self._get_liveaction_model(params) |
129 | | - liveaction_db.context['user'] = 'stanley' |
130 | | - |
131 | | - runner_params, action_params = param_utils.get_finalized_params( |
132 | | - ParamsUtilsTest.runnertype_db.runner_parameters, |
133 | | - ParamsUtilsTest.action_user_default_db.parameters, |
134 | | - liveaction_db.parameters, |
135 | | - liveaction_db.context) |
136 | | - |
137 | | - self.assertEqual(action_params.get('actionstr'), 'kabaali') |
138 | | - |
139 | 117 | def test_get_finalized_params_action_immutable(self): |
140 | 118 | params = { |
141 | 119 | 'actionstr': 'foo', |
|
0 commit comments