progress (and speed up for now)
gitea/wcs/pipeline/head There was a failure building this commit
Details
gitea/wcs/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
7278029828
commit
12413e78d3
|
@ -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):
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue