-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
287 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/array_in_different_order.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/different_value_found_at_index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/different_value_found_at_key.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/matches.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Right | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Right |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/missing_index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/missing_key.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...s/acceptance/version_1/testcases/request/body/not_null_found_at_key_when_null_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...acceptance/version_1/testcases/request/body/not_null_found_in_array_when_null_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
.../acceptance/version_1/testcases/request/body/null_found_at_key_where_not_null_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...acceptance/version_1/testcases/request/body/null_found_in_array_when_not_null_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...s/acceptance/version_1/testcases/request/body/number_found_at_key_when_string_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...acceptance/version_1/testcases/request/body/number_found_in_array_when_string_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
tests/acceptance/version_1/testcases/request/body/plain_text_that_does_not_match.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
actual.headers = [{'Content-Type': 'text/plain'}] | ||
expected.headers = [{'Content-Type': 'text/plain'}] | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
tests/acceptance/version_1/testcases/request/body/plain_text_that_matches.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pact_test.either import Right | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
actual.headers = [{'Content-Type': 'text/plain'}] | ||
expected.headers = [{'Content-Type': 'text/plain'}] | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Right |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...s/acceptance/version_1/testcases/request/body/string_found_at_key_when_number_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...acceptance/version_1/testcases/request/body/string_found_in_array_when_number_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/unexpected_index_with_not_null_value.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/unexpected_index_with_null_value.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/unexpected_key_with_not_null_value.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
tests/acceptance/version_1/testcases/request/body/unexpected_key_with_null_value.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pact_test.either import Left | ||
from pact_test.models.request import PactRequest | ||
from pact_test.matchers.request_matcher import match | ||
from tests.acceptance.acceptance_test_loader import load_acceptance_test | ||
|
||
|
||
def test(): | ||
data = load_acceptance_test(__file__) | ||
|
||
actual = PactRequest(**data['actual']) | ||
expected = PactRequest(**data['expected']) | ||
|
||
test_result = match(actual, expected) | ||
assert type(test_result) is Left |