mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed test I broke in #863
This commit is contained in:
parent
c5916cbffb
commit
1a5b7d318f
2 changed files with 3 additions and 4 deletions
|
|
@ -580,9 +580,8 @@ def test_register_routes_post(app_client):
|
|||
assert "post data" == response.json["this is"]
|
||||
|
||||
|
||||
def test_register_routes_csrftoken(tmpdir):
|
||||
templates = tmpdir / "templates"
|
||||
templates.mkdir()
|
||||
def test_register_routes_csrftoken(restore_working_directory, tmpdir_factory):
|
||||
templates = tmpdir_factory.mktemp("templates")
|
||||
(templates / "csrftoken_form.html").write_text(
|
||||
"CSRFTOKEN: {{ csrftoken() }}", "utf-8"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue