progress (and speed up for now)
gitea/wcs/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pierre Ducroquet 2024-03-05 11:27:06 +01:00
parent 7278029828
commit 12413e78d3
2 changed files with 5 additions and 5 deletions

View File

@ -1197,7 +1197,7 @@ def test_search_tokens_purge(pub):
data_class = test_formdef.data_class(mode='sql')
cur.execute("SELECT count(*) FROM wcs_search_tokens;")
assert cur.fetchone()[0] == 163
assert cur.fetchone()[0] == 116
t = data_class()
t.data = {'3': 'foo'}
@ -1205,18 +1205,18 @@ def test_search_tokens_purge(pub):
t.store()
cur.execute("SELECT count(*) FROM wcs_search_tokens;")
assert cur.fetchone()[0] == 164
assert cur.fetchone()[0] == 117
t.data = {'3': 'chaussette'}
t.store()
cur.execute("SELECT count(*) FROM wcs_search_tokens;")
assert cur.fetchone()[0] == 165
assert cur.fetchone()[0] == 118
sql.purge_obsolete_search_tokens()
cur.execute("SELECT count(*) FROM wcs_search_tokens;")
assert cur.fetchone()[0] == 163
assert cur.fetchone()[0] == 117
def table_exists(cur, table_name):

View File

@ -40,7 +40,7 @@ allowlist_externals =
./getlasso3.sh
commands =
./getlasso3.sh
py.test {posargs:-v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} --dist loadfile --junitxml=junit-{envname}.xml tests/}
py.test {posargs:-v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} --dist loadfile --junitxml=junit-{envname}.xml tests/test_sql.py}
codestyle: pre-commit run --all-files --show-diff-on-failure
[testenv:pylint]