Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maarcingebala committed Jan 24, 2020
1 parent 981f7ad commit 4bb30b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions tests/api/benchmark/test_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ def test_create_checkout(api_client, graphql_address_data, variant, count_querie
fragment Checkout on Checkout {
token
id
user {
email
}
totalPrice {
...Price
}
Expand Down
8 changes: 4 additions & 4 deletions tests/api/test_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ def test_query_checkout_line(checkout_with_item, user_api_client):


def test_query_checkouts(
checkout_with_item, staff_api_client, permission_manage_checkouts
checkout_with_item, staff_api_client, permission_manage_orders
):
query = """
{
Expand All @@ -1558,15 +1558,15 @@ def test_query_checkouts(
"""
checkout = checkout_with_item
response = staff_api_client.post_graphql(
query, {}, permissions=[permission_manage_checkouts]
query, {}, permissions=[permission_manage_orders]
)
content = get_graphql_content(response)
received_checkout = content["data"]["checkouts"]["edges"][0]["node"]
assert str(checkout.token) == received_checkout["token"]


def test_query_checkout_lines(
checkout_with_item, staff_api_client, permission_manage_checkouts
checkout_with_item, staff_api_client, permission_manage_orders
):
query = """
{
Expand All @@ -1581,7 +1581,7 @@ def test_query_checkout_lines(
"""
checkout = checkout_with_item
response = staff_api_client.post_graphql(
query, permissions=[permission_manage_checkouts]
query, permissions=[permission_manage_orders]
)
content = get_graphql_content(response)
lines = content["data"]["checkoutLines"]["edges"]
Expand Down

0 comments on commit 4bb30b7

Please sign in to comment.