We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5da65a commit 18bb2bbCopy full SHA for 18bb2bb
tests/unit/rql/query_builder/test_rql_or.py
@@ -68,6 +68,16 @@ def test_or_merge(): # noqa: WPS210
68
assert [r1, r2, r3, r4] == result.children
69
70
71
+def test_kwaargs_dict_value_is_sometime_an_iterable(mocker): # noqa: WPS210
72
+ mock_parse_kwargs = mocker.patch("mpt_api_client.rql.query_builder.parse_kwargs", autospec=True)
73
+
74
+ RQLQuery(field__in=("v1", "v2"))
75
76
+ mock_parse_kwargs.assert_called_once_with({
77
+ "field__in": ("v1", "v2")
78
+ }) # note value in the dict is an iterable
79
80
81
def test_or_merge_duplicates():
82
r1 = RQLQuery(id="ID")
83
r2 = RQLQuery(field="value")
0 commit comments