piphi-runtime-testkit-python 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

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.
@@ -214,7 +214,7 @@ class RuntimeHarness:
214
214
  async def state(self, *, refresh: bool = False, request_id: str | None = None) -> RuntimeResponse:
215
215
  params: dict[str, Any] = {"refresh": "true"} if refresh else {}
216
216
  if request_id:
217
- params["request_id"] = request_id
217
+ params["refresh_request_id"] = request_id
218
218
  return await self.request("GET", self.endpoints["state"], params=params)
219
219
 
220
220
  async def command(self, payload: CommandPayload | Mapping[str, Any]) -> RuntimeResponse:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: piphi-runtime-testkit-python
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Pytest-first helpers for testing PiPhi runtime integrations
5
5
  Keywords: piphi,pytest,testing,runtime,iot
6
6
  Author-Email: KelvinSan <support@piphi.network>
@@ -89,6 +89,10 @@ Pass an app factory instead of an app to make `await harness.restart()` create a
89
89
  fresh process-local runtime. Use `RuntimeHarness.for_http(...)` for a running
90
90
  container or process without changing scenario code.
91
91
 
92
+ For a canonical on-demand state read, call
93
+ `await harness.state(refresh=True, request_id="refresh-1")`. The harness maps
94
+ that argument to the runtime boundary's `refresh_request_id` query parameter.
95
+
92
96
  The profiles are intentionally small and readable:
93
97
 
94
98
  - `basic`: health, auth rejection, config, entities, and deconfigure
@@ -1,15 +1,15 @@
1
- piphi_runtime_testkit_python-0.3.0.dist-info/METADATA,sha256=L5XDvCW_NMv4VgnHrJnuUW5CvzDQ7h4AVUIyKtuc0Ys,29485
2
- piphi_runtime_testkit_python-0.3.0.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
- piphi_runtime_testkit_python-0.3.0.dist-info/entry_points.txt,sha256=zTIXoQOJK3VVIMOfKpB5Y3vnSbyFgyU45GZCb7fLGHI,120
4
- piphi_runtime_testkit_python-0.3.0.dist-info/licenses/LICENSE,sha256=pS6szQI4X7qAin1ODdoDp-XwZvsFy6ZZ28-JAwGHgzo,1070
1
+ piphi_runtime_testkit_python-0.3.1.dist-info/METADATA,sha256=49iDp3n3QFHuFRxm-HvjR7e4k9b6EbcoNb-MaoqFQkg,29685
2
+ piphi_runtime_testkit_python-0.3.1.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
+ piphi_runtime_testkit_python-0.3.1.dist-info/entry_points.txt,sha256=zTIXoQOJK3VVIMOfKpB5Y3vnSbyFgyU45GZCb7fLGHI,120
4
+ piphi_runtime_testkit_python-0.3.1.dist-info/licenses/LICENSE,sha256=pS6szQI4X7qAin1ODdoDp-XwZvsFy6ZZ28-JAwGHgzo,1070
5
5
  piphi_runtime_testkit_python/__init__.py,sha256=02wP1M6TnAmforh8HvHmbkOdHV2pQ2X8UeHCN16upSE,2751
6
6
  piphi_runtime_testkit_python/assertions.py,sha256=eeGhnl0yj7u7l8_svZaaSsaM87SLyEYDfYI2FbTndFM,19778
7
7
  piphi_runtime_testkit_python/behavior_contract.py,sha256=Tw6Jq8WulMoFdT9xzPTwiDgUG3mMq2DTzVnyCjtQGbM,9208
8
8
  piphi_runtime_testkit_python/builders.py,sha256=L0ytJ4fyQyv9QOuyXYulGBfQMhQiK8tnhbXymHdRxQM,4881
9
9
  piphi_runtime_testkit_python/camera.py,sha256=h0bKfAOuD9s8gWtVM7ONcolu_euX120DjrSH0i4p1bA,5356
10
10
  piphi_runtime_testkit_python/cross_contract.py,sha256=zGH982GhGL5nRQimodbjjQQFHaHwaLzwM_pN7-9Q9JI,3568
11
- piphi_runtime_testkit_python/harness.py,sha256=LKmZbc0NQmKwsEiWJBpIWhlOX8wraGtlDjxlJeV_x_E,13059
11
+ piphi_runtime_testkit_python/harness.py,sha256=Bpi0FCcOnqPCBjGDdSxWWyefle8Ub-Pfk1V5R4Mp3Mw,13067
12
12
  piphi_runtime_testkit_python/mock_core.py,sha256=FJf2d6zJ7_ETgUk1R5CVu_O02PgJjUwZ_JBvkmzdLrc,15803
13
13
  piphi_runtime_testkit_python/pytest_plugin.py,sha256=8LUxO-2o7PZOQeMLQ2THbtfwn2HJ91vXkwGiYipmNuw,965
14
14
  piphi_runtime_testkit_python/waits.py,sha256=OROOtcg2JmBzvQMQWF2ftR9m0fcujLVuT_YykUF5g7c,1953
15
- piphi_runtime_testkit_python-0.3.0.dist-info/RECORD,,
15
+ piphi_runtime_testkit_python-0.3.1.dist-info/RECORD,,