We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176cac7 commit 61671dcCopy full SHA for 61671dc
tests/test_service_products.py
@@ -1,6 +1,7 @@
1
import uuid
2
3
import pytest
4
+import requests_mock
5
from requests.exceptions import HTTPError
6
7
from commercetools import types
@@ -271,3 +272,14 @@ def test_product_update_add_price_current(client):
271
272
273
assert product.master_data.staged is None
274
assert len(product.master_data.current.master_variant.prices) == 1
275
+
276
277
+def test_predicate_var(client):
278
+ with requests_mock.Mocker(real_http=True, case_sensitive=True) as m:
279
280
+ result = client.products.query(
281
+ where="masterData(staged(masterVariant(prices(country='NL'))))",
282
+ predicate_var={"foo": "bar"},
283
+ )
284
285
+ assert "var.foo" in m.request_history[0].qs
0 commit comments