You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I didn't get everything, and a lot of tests are still using the old TestClient mechanism as a result.
The main work here is replacing all of the app_client_... fixtures which use variants on the default client - and changing the tests that call make_app_client() to do something else instead.
This requires some careful thought. I need to come up with a really nice pattern for creating variants on the ds_client default fixture - and do so in a way that minimizes the number of open files, refs:
One option would be adding that mechanism to datasette.client.post(...) - as a _csrf_from= parameter (with an underscore because it's mainly intended for use in tests, though perhaps that's a weird convention that I shouldn't introduce).
In this issue I replaced a whole bunch of places that used the non-async
app_client
fixture with an asyncds_client
fixture instead:async def
tests #1959But I didn't get everything, and a lot of tests are still using the old
TestClient
mechanism as a result.The main work here is replacing all of the
app_client_...
fixtures which use variants on the default client - and changing the tests that callmake_app_client()
to do something else instead.This requires some careful thought. I need to come up with a really nice pattern for creating variants on the
ds_client
default fixture - and do so in a way that minimizes the number of open files, refs:The text was updated successfully, but these errors were encountered: