Skip to content

Commit 845b488

Browse files
author
Rasmus Lager
committed
moved tests to separate dir
1 parent f9067c6 commit 845b488

7 files changed

+9
-14
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# requests, forced version
2+
Requests==2.2.1
3+
httmock>=1.2.4

tests/__init__.py

Whitespace-only changes.

ganapi/test_attribute_manager.py renamed to tests/test_attribute_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import unittest
2-
from api import Api
3-
from attribute import Attribute
4-
from attribute_manager import AttributeManager
2+
from ganapi import Api, Attribute, AttributeManager
53
from httmock import HTTMock, all_requests
64
from requests import HTTPError
75

ganapi/test_contact.py renamed to tests/test_contact.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from api import Api
2-
from contact_manager import ContactManager
3-
from list_manager import ListManager
1+
from ganapi import Api, ContactManager, ListManager
42
import unittest
53
from httmock import HTTMock, all_requests
64

ganapi/test_contact_manager.py renamed to tests/test_contact_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import unittest
2-
from api import Api, GanException
3-
from contact import Contact
4-
from contact_manager import ContactManager
2+
from ganapi import Api, GanException, Contact, ContactManager
53
from httmock import HTTMock, all_requests
64
from requests import HTTPError
75

ganapi/test_entity.py renamed to tests/test_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from entity import Entity
2+
from ganapi.entity import Entity
33

44

55
class EntityTest(unittest.TestCase):

ganapi/test_list_manager.py renamed to tests/test_list_manager.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import unittest
2-
from api import Api
3-
from list import List
4-
from list_manager import ListManager
2+
from ganapi import Api, List, ListManager, GanException
53
from httmock import HTTMock, all_requests
6-
from gan_exception import GanException
4+
75

86
class ListManagerTest(unittest.TestCase):
97
def setUp(self):

0 commit comments

Comments
 (0)