test: a unique CNPJ in the search and the reset output (0.11)

This commit is contained in:
Cauê Faleiros
2026-11-06 11:19:41 -03:00
parent 2bcdb060fd
commit 3d1293a3af
2 changed files with 9 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ def run():
assert not c.execute('''SELECT 1 FROM dtf_local.uploads WHERE purged_at IS NULL
AND expires_at>now()''').fetchone()
assert c.execute('SELECT count(*) AS n FROM dtf_local.operators').fetchone()['n'] >= 1
assert 'Apagado.' in lines and 'continua de onde parou' in lines[-1], lines
assert any('Apagado.' in line for line in lines) and 'continua de onde parou' in lines[-1], lines
# The numbering is not reset: DTF-1…DTF-15 already exist in Tiny.
with db.connect() as c:
quote = uuid4()