feat: alternar_ativo em CLIENTE e limpar em LOG_PAINEL (camada de banco)
This commit is contained in:
@@ -40,3 +40,12 @@ def test_contar(limpar):
|
||||
db_log.registrar("teste-log", "criar", "cliente", "1", True)
|
||||
depois = db_log.contar()
|
||||
assert depois == antes + 1
|
||||
|
||||
|
||||
def test_limpar_apaga_tudo(limpar):
|
||||
db_log.registrar("teste-log", "criar", "cliente", "1", True)
|
||||
assert db_log.contar() > 0
|
||||
|
||||
db_log.limpar()
|
||||
|
||||
assert db_log.contar() == 0
|
||||
|
||||
Reference in New Issue
Block a user