Skip to content

Commit 121a0f4

Browse files
authored
move unit tests into separate directory and modified tox.ini (#297)
## πŸ“ Description Unit tests currently are in the same directory as integration tests which causes a bit of confusion. Hence moving it to a different directory ## βœ”οΈ How to Test tox **How do I run the relevant unit/integration tests?** ## πŸ“· Preview **If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.**
1 parent ccb933a commit 121a0f4

26 files changed

Lines changed: 22 additions & 24 deletions
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import json
2+
from test.unit.fixtures import TestFixtures
23
from unittest import TestCase
34

45
from mock import patch
56

67
from linode_api4 import LinodeClient
78

8-
from .fixtures import TestFixtures
9-
109
FIXTURES = TestFixtures()
1110

1211

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from datetime import datetime
2-
from test.base import ClientBaseCase
2+
from test.unit.base import ClientBaseCase
33

44
from linode_api4 import LongviewSubscription
55
from linode_api4.objects.linode import Instance
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from datetime import datetime
2-
from test.base import ClientBaseCase
2+
from test.unit.base import ClientBaseCase
33

44
from linode_api4.objects import (
55
Account,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test.base import ClientBaseCase
1+
from test.unit.base import ClientBaseCase
22

33
from linode_api4 import PostgreSQLDatabase
44
from linode_api4.objects import MySQLDatabase
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test.base import ClientBaseCase
1+
from test.unit.base import ClientBaseCase
22

33
from linode_api4.objects import Domain, DomainRecord
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test.base import ClientBaseCase
1+
from test.unit.base import ClientBaseCase
22

33
from linode_api4.objects import Firewall, FirewallDevice
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import datetime
22
from io import BytesIO
3-
from test.base import ClientBaseCase
3+
from test.unit.base import ClientBaseCase
44
from typing import BinaryIO
55
from unittest.mock import patch
66

0 commit comments

Comments
Β (0)