Skip to content

Commit

Permalink
see if the long strings were the issue, can't seem to get any of the …
Browse files Browse the repository at this point in the history
…linting working locally
  • Loading branch information
rebrowning committed Oct 15, 2023
1 parent 8187c58 commit 9b940c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions st2client/tests/unit/test_command_actionrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ def test_correctly_process_inherit_env_when_no_parameters_set(self):
action=action, runner=runner, args=mockarg
)

self.assertIn("env", param, "did not correctly populate the env field in the returned data from _get_action_parameters_from_args")
self.assertIn("env", param)

env_params = param["env"]
self.assertIn(k1, env_params, f"did not correctly copy {k1} env variable into the parameters")
self.assertIn(k2, env_params, f"did not correctly copy {k2} env variable into the parameters")
self.assertEqual(v1, env_params[k1], f"did not correctly copy the value for {k1} env variable, {v1}, into the parameters")
self.assertEqual(v2, env_params[k2], f"did not correctly copy the value for {k2} env variable, {v2}, into the parameters")
self.assertIn(k1, env_params)
self.assertIn(k2, env_params)
self.assertEqual(v1, env_params[k1])
self.assertEqual(v2, env_params[k2])

def test_correctly_generate_empty_params_no_inherit_empty_parameters(self):
"""test_correctly_generate_empty_params_no_inherit_empty_parameters
Expand Down Expand Up @@ -333,4 +333,4 @@ def test_correctly_generate_empty_params_no_inherit_empty_parameters(self):
action=action, runner=runner, args=mockarg
)

self.assertDictEqual({}, param, "should return an empty dictionary")
self.assertDictEqual({}, param)

0 comments on commit 9b940c5

Please sign in to comment.