Compare commits

..

1 Commits

Author SHA1 Message Date
Pierre Ducroquet 4c2278fdaa rework the test for better behaviour along other tests
gitea/wcs/pipeline/head There was a failure building this commit Details
2024-04-22 14:01:55 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ def test_search_tokens_purge(pub):
_, cur = sql.get_connection_and_cursor()
def token_exists(token):
cur.execute('SELECT count(*) FROM wcs_search_tokens WHERE token=%s;', token)
cur.execute('SELECT count(*) FROM wcs_search_tokens WHERE token=%s;', (token,))
return cur.fetchone()[0] == 1
# purge garbage from other tests