Skip to content

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

Fix tests

oldPadavan610320d5e1ef
diff --git a/tests/api/test_product.py b/tests/api/test_product.py
index 94083bf3bf..ffecff24f7 100644
--- a/tests/api/test_product.py
+++ b/tests/api/test_product.py
@@ -356,7 +356,6 @@ def test_create_product(
$name: String!,
$description: String!,
$isPublished: Boolean!,
- $isFeatured: Boolean!,
$chargeTaxes: Boolean!,
$taxRate: String!,
$price: Decimal!,
@@ -368,7 +367,6 @@ def test_create_product(
name: $name,
description: $description,
isPublished: $isPublished,
- isFeatured: $isFeatured,
chargeTaxes: $chargeTaxes,
taxRate: $taxRate,
price: $price,
@@ -380,7 +378,6 @@ def test_create_product(
}
description
isPublished
- isFeatured
chargeTaxes
taxRate
name
@@ -414,7 +411,6 @@ def test_create_product(
product_description = 'test description'
product_name = 'test name'
product_isPublished = True
- product_isFeatured = False
product_chargeTaxes = True
product_taxRate = 'standard'
product_price = "22.33"
@@ -436,7 +432,6 @@ def test_create_product(
'name': product_name,
'description': product_description,
'isPublished': product_isPublished,
- 'isFeatured': product_isFeatured,
'chargeTaxes': product_chargeTaxes,
'taxRate': product_taxRate,
'price': product_price,
@@ -452,7 +447,6 @@ def test_create_product(
assert data['errors'] == []
assert data['product']['name'] == product_name
assert data['product']['description'] == product_description
- assert data['product']['isFeatured'] == product_isFeatured
assert data['product']['isPublished'] == product_isPublished
assert data['product']['chargeTaxes'] == product_chargeTaxes
assert data['product']['taxRate'] == product_taxRate
@@ -475,7 +469,6 @@ def test_update_product(
$name: String!,
$description: String!,
$isPublished: Boolean!,
- $isFeatured: Boolean!,
$chargeTaxes: Boolean!,
$taxRate: String!,
$price: Decimal!,
@@ -487,7 +480,6 @@ def test_update_product(
name: $name,
description: $description,
isPublished: $isPublished,
- isFeatured: $isFeatured,
chargeTaxes: $chargeTaxes,
taxRate: $taxRate,
price: $price,
@@ -499,7 +491,6 @@ def test_update_product(
}
description
isPublished
- isFeatured
chargeTaxes
taxRate
name
@@ -531,7 +522,6 @@ def test_update_product(
product_description = 'updated description'
product_name = 'updated name'
product_isPublished = True
- product_isFeatured = False
product_chargeTaxes = True
product_taxRate = 'standard'
product_price = "33.12"
@@ -542,7 +532,6 @@ def test_update_product(
'name': product_name,
'description': product_description,
'isPublished': product_isPublished,
- 'isFeatured': product_isFeatured,
'chargeTaxes': product_chargeTaxes,
'taxRate': product_taxRate,
'price': product_price})
@@ -555,7 +544,6 @@ def test_update_product(
assert data['errors'] == []
assert data['product']['name'] == product_name
assert data['product']['description'] == product_description
- assert data['product']['isFeatured'] == product_isFeatured
assert data['product']['isPublished'] == product_isPublished
assert data['product']['chargeTaxes'] == product_chargeTaxes
assert data['product']['taxRate'] == product_taxRate