test: a unique CNPJ in the search and the reset output (0.11)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user