har2pytest 1.7.2__tar.gz → 1.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. {har2pytest-1.7.2/har2pytest.egg-info → har2pytest-1.7.3}/PKG-INFO +1 -1
  2. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/testcase_generation_modes.md +5 -3
  3. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/parametrized_codegen.py +9 -0
  4. har2pytest-1.7.3/har2pytest/pytest_utils.py +80 -0
  5. har2pytest-1.7.3/har2pytest/templates/p_test_0_collect.j2 +12 -0
  6. {har2pytest-1.7.2 → har2pytest-1.7.3/har2pytest.egg-info}/PKG-INFO +1 -1
  7. {har2pytest-1.7.2 → har2pytest-1.7.3}/pyproject.toml +1 -1
  8. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_pytest_utils.py +69 -2
  9. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_testcase_generator.py +4 -4
  10. har2pytest-1.7.2/har2pytest/pytest_utils.py +0 -39
  11. har2pytest-1.7.2/har2pytest/templates/p_test_0_collect.j2 +0 -22
  12. {har2pytest-1.7.2 → har2pytest-1.7.3}/LICENSE +0 -0
  13. {har2pytest-1.7.2 → har2pytest-1.7.3}/MANIFEST.in +0 -0
  14. {har2pytest-1.7.2 → har2pytest-1.7.3}/README.md +0 -0
  15. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/api_file_generation.md +0 -0
  16. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/configuration.md +0 -0
  17. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/har_file_parsing.md +0 -0
  18. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/index.md +0 -0
  19. {har2pytest-1.7.2 → har2pytest-1.7.3}/docs/swagger_document_parsing.md +0 -0
  20. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/__init__.py +0 -0
  21. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/__main__.py +0 -0
  22. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/allure_compat.py +0 -0
  23. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/api_generator.py +0 -0
  24. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/api_metadata.py +0 -0
  25. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/client.py +0 -0
  26. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/codegen.py +0 -0
  27. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/config.py +0 -0
  28. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/har_generator.py +0 -0
  29. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/har_parser.py +0 -0
  30. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/logger.py +0 -0
  31. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/models.py +0 -0
  32. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/param_builder.py +0 -0
  33. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/scenario_codegen.py +0 -0
  34. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/step_values.py +0 -0
  35. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/swagger_handler.py +0 -0
  36. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/api_file_upload.j2 +0 -0
  37. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/api_function_def.j2 +0 -0
  38. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/api_http_method.j2 +0 -0
  39. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/api_imports.j2 +0 -0
  40. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/api_multipart_form.j2 +0 -0
  41. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_data_dict.j2 +0 -0
  42. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_list_query_data.j2 +0 -0
  43. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_method_body.j2 +0 -0
  44. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_parametrize_decorator.j2 +0 -0
  45. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_runtime_value_method.j2 +0 -0
  46. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_test_method_assertions.j2 +0 -0
  47. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/p_test_method_definition.j2 +0 -0
  48. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_asserts.j2 +0 -0
  49. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_data.j2 +0 -0
  50. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_heading.j2 +0 -0
  51. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_none.j2 +0 -0
  52. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_params.j2 +0 -0
  53. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_step_upload.j2 +0 -0
  54. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/s_test_method_definition.j2 +0 -0
  55. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/templates/tc_description.j2 +0 -0
  56. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/testcase_generator.py +0 -0
  57. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/time_pair.py +0 -0
  58. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/url_matcher.py +0 -0
  59. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest/utils.py +0 -0
  60. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest.egg-info/SOURCES.txt +0 -0
  61. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest.egg-info/dependency_links.txt +0 -0
  62. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest.egg-info/entry_points.txt +0 -0
  63. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest.egg-info/requires.txt +0 -0
  64. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest.egg-info/top_level.txt +0 -0
  65. {har2pytest-1.7.2 → har2pytest-1.7.3}/har2pytest_config.json.example +0 -0
  66. {har2pytest-1.7.2 → har2pytest-1.7.3}/setup.cfg +0 -0
  67. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_allure_compat.py +0 -0
  68. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_api_generator.py +0 -0
  69. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_api_metadata.py +0 -0
  70. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_async_client.py +0 -0
  71. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_client.py +0 -0
  72. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_codegen.py +0 -0
  73. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_config.py +0 -0
  74. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_har_generator.py +0 -0
  75. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_har_parser.py +0 -0
  76. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_logger.py +0 -0
  77. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_main.py +0 -0
  78. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_step_values.py +0 -0
  79. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_swagger_handler.py +0 -0
  80. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_testcase_profiles.py +0 -0
  81. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_url_matcher.py +0 -0
  82. {har2pytest-1.7.2 → har2pytest-1.7.3}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: har2pytest
3
- Version: 1.7.2
3
+ Version: 1.7.3
4
4
  Summary: 从HAR文件,Swagger接口文档自动生成API接口文件和pytest+allure测试用例
5
5
  Author-email: hewei <hewei1987@163.com>
6
6
  License-Expression: MIT
@@ -133,9 +133,11 @@ flowchart TD
133
133
 
134
134
  #### `test_0` 收集方法
135
135
 
136
- `test_0_{function_name}` 发送一次默认查询,遍历响应记录按字段名(不区分大小写)匹配参数,
137
- 把首条记录的匹配值收集进 `list_query_data` 供后续运行时取值方法使用;
138
- 响应值优先:收集到的值覆盖类属性已有值(含 HAR 录制值),同一参数只取首条记录的值。
136
+ `test_0_{function_name}` 发送一次默认查询,调用 `har2pytest.pytest_utils.collect_list_query_data`
137
+ 把响应字段值收集进 `list_query_data`(原地更新类属性):优先精确匹配参数名(不区分大小写),
138
+ 响应字段无同名参数时降级前缀模糊匹配(如参数 `operator` 可匹配响应字段
139
+ `operatorName`/`operatorNo`,命中多个时取第一个),同一参数只取首条记录的值;
140
+ 响应值优先:收集到的值覆盖类属性已有值(含 HAR 录制值)。
139
141
 
140
142
  #### 数组类型参数(多选)
141
143
 
@@ -123,6 +123,15 @@ def gen_test_case_imports(
123
123
  ]
124
124
  )
125
125
 
126
+ if is_list_query:
127
+ # test_0 收集逻辑收口到 pytest_utils.collect_list_query_data,产物只调用
128
+ content.extend(
129
+ [
130
+ "from har2pytest.pytest_utils import collect_list_query_data",
131
+ "",
132
+ ]
133
+ )
134
+
126
135
  if api_files:
127
136
  service_imports: dict[str | None, list[str]] = {}
128
137
  for api_file in api_files:
@@ -0,0 +1,80 @@
1
+ """pytest 测试工具函数"""
2
+
3
+ from collections.abc import Callable
4
+ from typing import Any
5
+
6
+ from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_fixed
7
+
8
+ from .logger import logger
9
+
10
+
11
+ def retry_step(counts: int = 2, times: int = 20) -> Callable:
12
+ """
13
+ 测试步骤断言失败后重试装饰器。
14
+ 支持同步和异步函数(tenacity 自动适配)。
15
+
16
+ Args:
17
+ counts: 最大执行次数(含首次)
18
+ times: 每次重试间隔秒数
19
+ """
20
+
21
+ def after(retry_state):
22
+ # 最后一次失败后没有下一次重试,提示语不再说“Xs后重试”
23
+ is_last = retry_state.attempt_number >= counts
24
+ suffix = f"{times}s后重试" if not is_last else "重试次数已用完"
25
+ logger.warning(
26
+ "[retry_step] %s 第%d次失败, %s: %s",
27
+ retry_state.fn.__name__,
28
+ retry_state.attempt_number,
29
+ suffix,
30
+ retry_state.outcome.exception(),
31
+ )
32
+
33
+ decorator = retry(
34
+ stop=stop_after_attempt(counts),
35
+ wait=wait_fixed(times),
36
+ retry=retry_if_exception_type(AssertionError),
37
+ reraise=True,
38
+ after=after,
39
+ )
40
+ return decorator # pyright: ignore[reportReturnType]
41
+
42
+
43
+ def collect_list_query_data(data: Any, list_query_data: dict[str, Any]) -> None:
44
+ """从响应 JSON 收集字段值到 list_query_data(原地更新)。
45
+
46
+ 优先精确匹配参数名(不区分大小写),响应字段无同名参数时降级前缀模糊匹配
47
+ (如参数 ``operator`` 可匹配响应字段 ``operatorNo``/``operatorName``,
48
+ 命中多个时取第一个);响应值优先:首条记录的匹配值覆盖已有值(含录制值),
49
+ 同一参数只收集一次。
50
+
51
+ Args:
52
+ data: 接口响应 JSON(``await r.json()`` 结果)
53
+ list_query_data: list_query_data 类属性字典(原地写入)
54
+ """
55
+ resp_data = data.get("data", {}) if isinstance(data, dict) else {}
56
+ items = (
57
+ resp_data.get("lists", resp_data.get("list", []))
58
+ if isinstance(resp_data, dict)
59
+ else []
60
+ )
61
+ collected = set()
62
+ for item in items:
63
+ if isinstance(item, dict):
64
+ for k, v in item.items():
65
+ if isinstance(v, (str, int, float)) and v not in ("", None):
66
+ param_name = next(
67
+ (p for p in list_query_data if p.lower() == k.lower()), None
68
+ )
69
+ if param_name is None:
70
+ param_name = next(
71
+ (
72
+ p
73
+ for p in list_query_data
74
+ if k.lower().startswith(p.lower()) and p not in collected
75
+ ),
76
+ None,
77
+ )
78
+ if param_name and param_name not in collected:
79
+ collected.add(param_name)
80
+ list_query_data[param_name] = v
@@ -0,0 +1,12 @@
1
+ @allure.title("{{ api_description }}: 获取响应数据")
2
+ {{ def_prefix }}test_0_{{ function_name }}(self):
3
+ {{ body_indent }}{{ param_var_name }} = {
4
+ {% for key, value in data_items %}{{ body_indent }} "{{ key }}": {{ value }},
5
+ {% endfor %}{{ body_indent }}}
6
+ {{ body_indent }}{{ with_keyword }} {{ function_name }}({{ param_var_name }}={{ param_var_name }}, headers=self.headers) as r:
7
+ {{ body_indent }} assert r.{{ status_attr }} == 200
8
+ {{ body_indent }} data = {{ json_call }}
9
+ {{ body_indent }} assert data["code"] == 200
10
+ {{ body_indent }} # 收集响应字段值到 list_query_data(精确匹配优先、无则前缀模糊匹配;响应值优先覆盖),逻辑见 pytest_utils.collect_list_query_data
11
+ {{ body_indent }} collect_list_query_data(data, self.__class__.list_query_data)
12
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: har2pytest
3
- Version: 1.7.2
3
+ Version: 1.7.3
4
4
  Summary: 从HAR文件,Swagger接口文档自动生成API接口文件和pytest+allure测试用例
5
5
  Author-email: hewei <hewei1987@163.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "har2pytest"
3
- version = "1.7.2"
3
+ version = "1.7.3"
4
4
  description = "从HAR文件,Swagger接口文档自动生成API接口文件和pytest+allure测试用例"
5
5
  authors = [
6
6
  { name = "hewei", email = "hewei1987@163.com" }
@@ -1,11 +1,11 @@
1
- """测试 har2pytest.pytest_utils 模块中 retry_step 重试装饰器的同步/异步重试、异常类型过滤与日志输出的功能与边界。"""
1
+ """测试 har2pytest.pytest_utils 模块中 retry_step 重试装饰器的同步/异步重试、异常类型过滤与日志输出,以及 collect_list_query_data 响应收集函数的功能与边界。"""
2
2
 
3
3
  import logging
4
4
 
5
5
  import allure
6
6
  import pytest
7
7
 
8
- from har2pytest.pytest_utils import retry_step
8
+ from har2pytest.pytest_utils import collect_list_query_data, retry_step
9
9
 
10
10
  # ==================== retry_step 重试装饰器测试 ====================
11
11
 
@@ -118,3 +118,70 @@ async def test_retry_step_default_counts():
118
118
 
119
119
  assert await flaky() == "ok"
120
120
  assert len(attempts) == 2
121
+
122
+
123
+ # ==================== collect_list_query_data 响应收集函数测试 ====================
124
+
125
+
126
+ @allure.feature("pytest工具函数")
127
+ @allure.story("响应收集函数")
128
+ @allure.title("测试精确匹配优先于前缀模糊匹配")
129
+ def test_collect_list_query_data_exact_match_priority():
130
+ list_query_data = {"operator": "", "ruleName": ""}
131
+ collect_list_query_data(
132
+ {"data": {"list": [{"operator": "OP-100", "operatorNo": "NO-1", "ruleName": "R1"}]}},
133
+ list_query_data,
134
+ )
135
+ # 响应同时存在同名与同前缀字段时,精确匹配值获胜
136
+ assert list_query_data["operator"] == "OP-100"
137
+ assert list_query_data["ruleName"] == "R1"
138
+
139
+
140
+ @allure.feature("pytest工具函数")
141
+ @allure.story("响应收集函数")
142
+ @allure.title("测试无精确匹配时降级前缀模糊匹配且取第一个")
143
+ def test_collect_list_query_data_fuzzy_fallback_first_match():
144
+ list_query_data = {"operator": "", "ruleName": ""}
145
+ collect_list_query_data(
146
+ {"data": {"list": [{"operatorNo": "NO-2", "operatorName": "张三", "ruleName": "R2"}]}},
147
+ list_query_data,
148
+ )
149
+ # 参数 operator 无同名字段,降级前缀匹配 operatorNo/operatorName,取遍历第一个
150
+ assert list_query_data["operator"] == "NO-2"
151
+ assert list_query_data["ruleName"] == "R2"
152
+
153
+
154
+ @allure.feature("pytest工具函数")
155
+ @allure.story("响应收集函数")
156
+ @allure.title("测试已收集参数不再被后续记录覆盖且响应值覆盖录制值")
157
+ def test_collect_list_query_data_first_record_wins():
158
+ # 初始录制值非空,验证响应值优先覆盖;后续记录的同名/同前缀字段不再覆盖首条记录值
159
+ list_query_data = {"operator": "RECORDED", "ruleName": "RECORDED-RULE"}
160
+ collect_list_query_data(
161
+ {
162
+ "data": {
163
+ "list": [
164
+ {"operator": "OP-3", "ruleName": "R3"},
165
+ {"operatorNo": "NO-3", "ruleName": "R3-2"},
166
+ ]
167
+ }
168
+ },
169
+ list_query_data,
170
+ )
171
+ assert list_query_data["operator"] == "OP-3"
172
+ assert list_query_data["ruleName"] == "R3"
173
+
174
+
175
+ @allure.feature("pytest工具函数")
176
+ @allure.story("响应收集函数")
177
+ @allure.title("测试响应无数据时保持原值且非参数键不收集")
178
+ def test_collect_list_query_data_empty_response_keeps_original():
179
+ list_query_data = {"operator": "OP-0", "ruleName": "R0"}
180
+ # 响应 data 缺失/列表为空/字段值空均不更新
181
+ collect_list_query_data({"code": 200}, list_query_data)
182
+ collect_list_query_data({"data": {"list": []}}, list_query_data)
183
+ collect_list_query_data(
184
+ {"data": {"list": [{"operator": "", "otherField": "X"}]}},
185
+ list_query_data,
186
+ )
187
+ assert list_query_data == {"operator": "OP-0", "ruleName": "R0"}
@@ -1757,10 +1757,10 @@ def test_generate_parametrized_content_test0_response_priority(tmp_path, paginat
1757
1757
  generator = TestCaseGenerator(api_dir=str(api_dir), output_dir=str(tmp_path / "output"))
1758
1758
  content = generator.generate_parametrized_test_content(str(api_file), "test_task")
1759
1759
  assert content is not None
1760
- assert "collected = set()" in content
1761
- assert "if param_name and param_name not in collected:" in content
1762
- assert "collected.add(param_name)" in content
1763
- # 旧“仅填空值”条件已移除
1760
+ # 收集逻辑收口到 pytest_utils.collect_list_query_data,产物只调用 + 导入
1761
+ assert "collect_list_query_data(data, self.__class__.list_query_data)" in content
1762
+ assert "from har2pytest.pytest_utils import collect_list_query_data" in content
1763
+ # 旧“仅填空值”条件已移除(收集逻辑不再内联在产物中)
1764
1764
  assert "not self.list_query_data[param_name]" not in content
1765
1765
 
1766
1766
 
@@ -1,39 +0,0 @@
1
- """pytest 测试工具函数"""
2
-
3
- from collections.abc import Callable
4
-
5
- from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_fixed
6
-
7
- from .logger import logger
8
-
9
-
10
- def retry_step(counts: int = 2, times: int = 20) -> Callable:
11
- """
12
- 测试步骤断言失败后重试装饰器。
13
- 支持同步和异步函数(tenacity 自动适配)。
14
-
15
- Args:
16
- counts: 最大执行次数(含首次)
17
- times: 每次重试间隔秒数
18
- """
19
-
20
- def after(retry_state):
21
- # 最后一次失败后没有下一次重试,提示语不再说“Xs后重试”
22
- is_last = retry_state.attempt_number >= counts
23
- suffix = f"{times}s后重试" if not is_last else "重试次数已用完"
24
- logger.warning(
25
- "[retry_step] %s 第%d次失败, %s: %s",
26
- retry_state.fn.__name__,
27
- retry_state.attempt_number,
28
- suffix,
29
- retry_state.outcome.exception(),
30
- )
31
-
32
- decorator = retry(
33
- stop=stop_after_attempt(counts),
34
- wait=wait_fixed(times),
35
- retry=retry_if_exception_type(AssertionError),
36
- reraise=True,
37
- after=after,
38
- )
39
- return decorator # pyright: ignore[reportReturnType]
@@ -1,22 +0,0 @@
1
- @allure.title("{{ api_description }}: 获取响应数据")
2
- {{ def_prefix }}test_0_{{ function_name }}(self):
3
- {{ body_indent }}{{ param_var_name }} = {
4
- {% for key, value in data_items %}{{ body_indent }} "{{ key }}": {{ value }},
5
- {% endfor %}{{ body_indent }}}
6
- {{ body_indent }}{{ with_keyword }} {{ function_name }}({{ param_var_name }}={{ param_var_name }}, headers=self.headers) as r:
7
- {{ body_indent }} assert r.{{ status_attr }} == 200
8
- {{ body_indent }} data = {{ json_call }}
9
- {{ body_indent }} assert data["code"] == 200
10
- {{ body_indent }} # 收集响应字段值到 list_query_data(不区分大小写匹配参数名);响应值优先:首条记录的匹配值覆盖已有值(含录制值)
11
- {{ body_indent }} collected = set()
12
- {{ body_indent }} resp_data = data.get("data", {})
13
- {{ body_indent }} items = resp_data.get("lists", resp_data.get("list", [])) if isinstance(resp_data, dict) else []
14
- {{ body_indent }} for item in items:
15
- {{ body_indent }} if isinstance(item, dict):
16
- {{ body_indent }} for k, v in item.items():
17
- {{ body_indent }} if isinstance(v, (str, int, float)) and v not in ("", None):
18
- {{ body_indent }} param_name = next((p for p in self.list_query_data if p.lower() == k.lower()), None)
19
- {{ body_indent }} if param_name and param_name not in collected:
20
- {{ body_indent }} collected.add(param_name)
21
- {{ body_indent }} self.__class__.list_query_data[param_name] = v
22
-
File without changes
File without changes
File without changes
File without changes
File without changes