We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use this pattern in a lot of plugin tests, e.g. https://github.com/simonw/datasette-edit-templates/blob/087f6a6cabc20020f2b0524f11aa3a7836320848/tests/test_edit_templates.py#L55-L58
actor = ds.sign({"a": {"id": "root"}}, "actor") response1 = await ds.client.get( "/-/edit-templates/_footer.html", cookies={"ds_actor": actor} )
I should add this to the documentation on this page: https://docs.datasette.io/en/latest/testing_plugins.html
The text was updated successfully, but these errors were encountered:
This can now be done with datasette.client.actor_cookie({"id": "root"}).
datasette.client.actor_cookie({"id": "root"})
datasette/datasette/app.py
Lines 1884 to 1891 in 48148e6
Sorry, something went wrong.
7506a89
literalinclude with markers for showing code in documentation
3d428ca
New docs are here: https://docs.datasette.io/en/latest/testing_plugins.html#using-datasette-client-in-tests
No branches or pull requests
I use this pattern in a lot of plugin tests, e.g. https://github.com/simonw/datasette-edit-templates/blob/087f6a6cabc20020f2b0524f11aa3a7836320848/tests/test_edit_templates.py#L55-L58
I should add this to the documentation on this page: https://docs.datasette.io/en/latest/testing_plugins.html
The text was updated successfully, but these errors were encountered: