Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add space to opening brackets in tests

akjanik2cd5f0881c93
diff --git a/tests/api/test_account.py b/tests/api/test_account.py
index 9705beeb58..dd0ad7ca2b 100644
--- a/tests/api/test_account.py
+++ b/tests/api/test_account.py
@@ -39,10 +39,10 @@ def test_token_create_user_data(
query = """
mutation {
tokenCreate(email: "%(email)s", password: "%(password)s") {
- user{
+ user {
id
email
- permissions{
+ permissions {
code
name
}
diff --git a/tests/api/test_product.py b/tests/api/test_product.py
index c0f3e64af0..8c0facfb26 100644
--- a/tests/api/test_product.py
+++ b/tests/api/test_product.py
@@ -101,12 +101,16 @@ def test_product_query(admin_api_client, product):
}
}
}
- purchaseCost{
- start{
- amount
+ purchaseCost {
+ start {
+ gross {
+ amount
+ }
}
- stop{
- amount
+ stop {
+ gross {
+ amount
+ }
}
}
margin {
@@ -370,7 +374,7 @@ def test_create_product(
price: $price,
attributes: $attributes) {
product {
- category{
+ category {
name
}
description
@@ -379,17 +383,17 @@ def test_create_product(
chargeTaxes
taxRate
name
- price{
+ price {
amount
}
- productType{
+ productType {
name
}
- attributes{
- attribute{
+ attributes {
+ attribute {
slug
}
- value{
+ value {
slug
}
}
@@ -487,7 +491,7 @@ def test_update_product(
price: $price,
attributes: $attributes) {
product {
- category{
+ category {
name
}
description
@@ -496,17 +500,17 @@ def test_update_product(
chargeTaxes
taxRate
name
- price{
+ price {
amount
}
- productType{
+ productType {
name
}
- attributes{
- attribute{
+ attributes {
+ attribute {
name
}
- value{
+ value {
name
}
}
@@ -612,8 +616,8 @@ def test_product_type_query(
name
products {
totalCount
- edges{
- node{
+ edges {
+ node {
name
}
}
diff --git a/tests/api/test_variant.py b/tests/api/test_variant.py
index 60f9534747..ba103757e7 100644
--- a/tests/api/test_variant.py
+++ b/tests/api/test_variant.py
@@ -21,15 +21,15 @@ def test_create_variant(admin_api_client, product, product_type):
priceOverride: $priceOverride,
costPrice: $costPrice,
quantity: $quantity,
- attributes: $attributes){
- productVariant{
+ attributes: $attributes) {
+ productVariant {
name
sku
- attributes{
- attribute{
+ attributes {
+ attribute {
slug
}
- value{
+ value {
slug
}
}
@@ -90,8 +90,8 @@ def test_update_product_variant(admin_api_client, product):
id: $id,
sku: $sku,
costPrice: $costPrice,
- quantity: $quantity){
- productVariant{
+ quantity: $quantity) {
+ productVariant {
name
sku
quantity