def test_correctly_process_inherit_env_when_no_parameters_set(self):
        """test_correctly_process_inherit_env_when_no_parameters_set

        This tests that we still correctly pass through the environment variables
        when --inherit-env is set and we run an action that does not have parameters
        """

        runner = RunnerType()
        runner.runner_parameters = {}

        action = Action()
        action.ref = "test.action"

        subparser = mock.Mock()
        command = ActionRunCommand(action, self, subparser, name="test")

        mockarg = mock.Mock()
        mockarg.inherit_env = True
        mockarg.auto_dict = True
        mockarg.parameters = []

        k1 = "key1"
        v1 = "value1"
        k2 = "key2"
        v2 = "value2"

        with mock.patch("os.environ.copy") as mockCopy:
            mockCopy.return_value = {k1: v1, k2: v2}
            param = command._get_action_parameters_from_args(
                action=action, runner=runner, args=mockarg
            )

        self.assertIn("env", param)

        env_params = param["env"]
        self.assertIn(k1, env_params)
        self.assertIn(k2, env_params)
        self.assertEqual(v1, env_params[k1])
        self.assertEqual(v2, env_params[k2])
test_correctly_process_inherit_env_when_no_parameters_set

        This tests that we still correctly pass through the environment variables
        when --inherit-env is set and we run an action that does not have parameters
        
st2client/tests/unit/test_command_actionrun.py