Skip to content

Commit

Permalink
MAINT: update to remove submodule
Browse files Browse the repository at this point in the history
not using workflow submodules anymore so removed using them here
  • Loading branch information
anish-mudaraddi committed Dec 6, 2023
1 parent ae31151 commit c97a4ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 0 additions & 4 deletions actions/email.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ name: email.test
parameters:
timeout:
default: 5400
submodule_name:
default: email
immutable: true
type: string
action_name:
default: send_test_email
immutable: true
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions tests/actions/test_workflow_actions.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from unittest.mock import patch, NonCallableMock
import pytest
from importlib import import_module
from src.workflow_actions import WorkflowActions
from tests.actions.openstack_action_test_base import OpenstackActionTestBase


def test_module_exists():
@pytest.mark.parametrize("action_name", ["send_decom_flavor_email", "send_test_email"])
def test_module_exists(action_name):
"""
Test that each action's entry-point module exists
"""
action_name = "send_decom_flavor_email"
workflow_module = import_module("workflows")

assert hasattr(workflow_module, action_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

from structs.email.email_template_details import EmailTemplateDetails
from workflows.email.send_test_email import send_test_email
from workflows.send_test_email import send_test_email


@pytest.fixture(name="send_test_email_test_case")
Expand All @@ -11,8 +11,8 @@ def send_test_email_test_case_fixture():
Fixture to run send_test_email test cases
"""

@patch("workflows.email.send_test_email.Emailer")
@patch("workflows.email.send_test_email.EmailParams")
@patch("workflows.send_test_email.Emailer")
@patch("workflows.send_test_email.EmailParams")
def _send_test_email_test_case(
mock_kwargs, expected_kwargs, cc_cloud_support, mock_email_params, mock_emailer
):
Expand Down

0 comments on commit c97a4ce

Please sign in to comment.