feat: ajusta colunas, alinhamento e densidade da tabela de clientes
This commit is contained in:
@@ -951,3 +951,12 @@ def test_criar_cliente_grava_uf_maiuscula_e_cep_sem_traco(monkeypatch):
|
||||
assert resposta.status_code == 303
|
||||
assert capturado["dados"]["UF"] == "BA"
|
||||
assert capturado["dados"]["CEP"] == "44430174"
|
||||
|
||||
|
||||
def test_listar_clientes_tabela_tem_classe_de_escopo(monkeypatch):
|
||||
monkeypatch.setattr(router_clientes.db_clientes, "listar_clientes", lambda busca=None, limite=100, offset=0, ordenar_por="razao", direcao="asc", filtro_ativo=1: [])
|
||||
monkeypatch.setattr(router_clientes.db_clientes, "contar_clientes", lambda busca=None, ordenar_por="razao", filtro_ativo=1: 0)
|
||||
|
||||
resposta = client.get("/clientes")
|
||||
assert resposta.status_code == 200
|
||||
assert '<table class="table-clientes">' in resposta.text
|
||||
|
||||
Reference in New Issue
Block a user