Skip to content

Commit

Permalink
Test fix for Python 3.8, refs #7
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Feb 27, 2024
1 parent 270d39f commit 1b97aa4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,16 @@ async def test_execute_write(ds, database, sql, params, expected_message):
assert 200 == response.status_code
csrftoken = response.cookies["ds_csrftoken"]
cookies["ds_csrftoken"] = csrftoken
data = {
"sql": sql,
"csrftoken": csrftoken,
"database": database,
}
data.update(params)
# write to database
response2 = await ds.client.post(
"/-/write",
data={
"sql": sql,
"csrftoken": csrftoken,
"database": database,
}
| params,
data=data,
cookies=cookies,
)
messages = [m[0] for m in ds.unsign(response2.cookies["ds_messages"], "messages")]
Expand Down

0 comments on commit 1b97aa4

Please sign in to comment.