Skip to content

Commit 9d03181

Browse files
Fix import paths in test files for GitHub Actions compatibility
- Updated import statements in test_contact_groups.py, test_contacts.py, and test_messages.py - Changed 'from src.devo_global_comms_python' to 'from devo_global_comms_python' - Ensures compatibility with pip install -e . package installation in CI/CD - All 72 tests passing locally with correct imports - Resolves ModuleNotFoundError: No module named 'src' in GitHub Actions
1 parent c51f72c commit 9d03181

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def mock_client():
1010
"""Create a mock DevoClient for testing."""
1111
client = Mock(spec=DevoClient)
12-
client.base_url = "https://api.devo.com/v1"
12+
client.base_url = "https://global-api-development.devotel.io/api/v1"
1313
client.timeout = 30.0
1414
return client
1515

tests/test_contact_groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
import pytest
55

6-
from src.devo_global_comms_python import DevoClient
7-
from src.devo_global_comms_python.models.contact_groups import (
6+
from devo_global_comms_python import DevoClient
7+
from devo_global_comms_python.models.contact_groups import (
88
ContactsGroup,
99
ContactsGroupListResponse,
1010
CreateContactsGroupDto,
1111
DeleteContactsGroupsDto,
1212
UpdateContactsGroupDto,
1313
)
14-
from src.devo_global_comms_python.resources.contact_groups import ContactGroupsResource
14+
from devo_global_comms_python.resources.contact_groups import ContactGroupsResource
1515

1616

1717
class TestContactGroupsResource:

tests/test_contacts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import pytest
44

5-
from src.devo_global_comms_python import DevoClient
6-
from src.devo_global_comms_python.exceptions import DevoValidationException
7-
from src.devo_global_comms_python.models.contacts import (
5+
from devo_global_comms_python import DevoClient
6+
from devo_global_comms_python.exceptions import DevoValidationException
7+
from devo_global_comms_python.models.contacts import (
88
AssignToContactsGroupDto,
99
CommonDeleteDto,
1010
ContactSerializer,
@@ -19,7 +19,7 @@
1919
UpdateContactDto,
2020
UpdateCustomFieldDto,
2121
)
22-
from src.devo_global_comms_python.resources.contacts import ContactsResource
22+
from devo_global_comms_python.resources.contacts import ContactsResource
2323

2424

2525
class TestContactsResource:

tests/test_messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import pytest
55

6-
from src.devo_global_comms_python.models.messages import SendMessageDto, SendMessageSerializer
7-
from src.devo_global_comms_python.resources.messages import MessagesResource
6+
from devo_global_comms_python.models.messages import SendMessageDto, SendMessageSerializer
7+
from devo_global_comms_python.resources.messages import MessagesResource
88

99

1010
class TestMessagesResource:

0 commit comments

Comments
 (0)