Skip to content

Commit 12108c4

Browse files
Merge pull request #132 from pyasi/pyasi_test_refactor
Move tests to standard tests dir
2 parents 48ad173 + 5785782 commit 12108c4

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed
File renamed without changes.

pact/test/test_constants.py renamed to tests/test_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from mock import patch
44

5-
from .. import constants
5+
from pact import constants as constants
66

77

88
class broker_client_exeTestCase(TestCase):

pact/test/test_consumer.py renamed to tests/test_consumer.py

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

33
from mock import Mock
44

5-
from .. import Consumer, Provider
6-
from ..pact import Pact
5+
from pact.consumer import Consumer
6+
from pact.provider import Provider
7+
from pact.pact import Pact
78

89

910
class ConsumerTestCase(TestCase):

pact/test/test_matchers.py renamed to tests/test_matchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from unittest import TestCase
22

3-
from ..matchers import EachLike, Like, Matcher, SomethingLike, \
3+
from pact.matchers import EachLike, Like, Matcher, SomethingLike, \
44
Term, from_term, get_generated_values
55

66

pact/test/test_pact.py renamed to tests/test_pact.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
from mock import patch, call, Mock
66
from psutil import Process
77

8-
from .. import Consumer, Provider, Term, pact
9-
from ..constants import MOCK_SERVICE_PATH, BROKER_CLIENT_PATH
10-
from ..pact import Pact, FromTerms, Request, Response
8+
from pact.consumer import Consumer, Provider
9+
from pact.matchers import Term
10+
from pact.constants import MOCK_SERVICE_PATH, BROKER_CLIENT_PATH
11+
from pact.pact import Pact, FromTerms, Request, Response
12+
from pact import pact as pact
1113

1214

1315
class PactTestCase(TestCase):

pact/test/test_provider.py renamed to tests/test_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from unittest import TestCase
22

3-
from .. import Provider
3+
from pact.provider import Provider
44

55

66
class ProviderTestCase(TestCase):

pact/test/test_verify.py renamed to tests/test_verify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from click.testing import CliRunner
66
from mock import patch, Mock, call
77

8-
from .. import verify
9-
from ..constants import VERIFIER_PATH
8+
from pact import verify as verify
9+
from pact.constants import VERIFIER_PATH
1010

1111
if sys.version_info.major == 2:
1212
from subprocess32 import PIPE, Popen

0 commit comments

Comments
 (0)