pytest-clerk 1.0.0__py3-none-any.whl → 1.0.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.
pytest_clerk/clerk.py CHANGED
@@ -105,7 +105,7 @@ def clerk_frontend_httpx_client(clerk_frontend_api_url):
105
105
 
106
106
  client = httpx.Client(
107
107
  params={"__dev_session": result.json()["token"]},
108
- base_url=clerk_frontend_api_url,
108
+ base_url=f"{clerk_frontend_api_url}/v1",
109
109
  )
110
110
 
111
111
  yield client
@@ -364,7 +364,7 @@ def clerk_touch_user_session(clerk_frontend_httpx_client):
364
364
  retry=retry_if_exception(predicate=retry_predicate),
365
365
  wait=wait_random_exponential(multiplier=0.5, max=60),
366
366
  )
367
- def _inner(session_id, session_data, **kwargs):
367
+ def _inner(session_id, session_data=None, **kwargs):
368
368
  """Given a Clerk user session ID and any optional session_data, touch the
369
369
  session with the given ID with any session_data sent as form data. This passes
370
370
  through any additional kwargs to the httpx.Client.post call.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-clerk
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: A set of pytest fixtures to help with integration testing with Clerk.
5
5
  Home-page: https://gitlab.com/munipal-oss/pytest-clerk
6
6
  License: MIT
@@ -0,0 +1,7 @@
1
+ pytest_clerk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ pytest_clerk/clerk.py,sha256=uKjUxV5EJYl8iu6QFAJUaqiVhs39jpLXN25ZdCQUmp8,16204
3
+ pytest_clerk-1.0.1.dist-info/LICENSE,sha256=QLSYHsNt-ZLbbVtDs7h8o8v-V0SlK2BuGe7LmoPOasU,1064
4
+ pytest_clerk-1.0.1.dist-info/METADATA,sha256=iQCjkjPtWMY-hu1ikD4m36PuV_wqiE1tYQ6gGPs1Fx0,1630
5
+ pytest_clerk-1.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ pytest_clerk-1.0.1.dist-info/entry_points.txt,sha256=ps5MgIGlDiWP4lufTAzoQhfwL-GA7rJquc1bqnVR-oA,44
7
+ pytest_clerk-1.0.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- pytest_clerk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pytest_clerk/clerk.py,sha256=seb4UDkt7AAp5NkWh1NRNXzx9OpItTRVz36U6eBqRXY,16191
3
- pytest_clerk-1.0.0.dist-info/LICENSE,sha256=QLSYHsNt-ZLbbVtDs7h8o8v-V0SlK2BuGe7LmoPOasU,1064
4
- pytest_clerk-1.0.0.dist-info/METADATA,sha256=qynx4FXybXhk-YszbEGcYoRMfJpOaDtL0KXnhAkXbHo,1630
5
- pytest_clerk-1.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- pytest_clerk-1.0.0.dist-info/entry_points.txt,sha256=ps5MgIGlDiWP4lufTAzoQhfwL-GA7rJquc1bqnVR-oA,44
7
- pytest_clerk-1.0.0.dist-info/RECORD,,