test_aceita_bom (test_consolidador.Requisitos.test_aceita_bom) ... ok
test_concluida_nao_esta_atrasada (test_consolidador.Requisitos.test_concluida_nao_esta_atrasada) ... FAIL
test_csv_vazio_com_cabecalho (test_consolidador.Requisitos.test_csv_vazio_com_cabecalho) ... FAIL
test_decimal_exato (test_consolidador.Requisitos.test_decimal_exato) ... FAIL
test_erro_cli_nao_produz_json_parcial (test_consolidador.Requisitos.test_erro_cli_nao_produz_json_parcial) ... FAIL
test_exemplo_integral (test_consolidador.Requisitos.test_exemplo_integral) ... FAIL
test_normaliza_espacos_e_status (test_consolidador.Requisitos.test_normaliza_espacos_e_status) ... FAIL
test_ordenacao_estavel (test_consolidador.Requisitos.test_ordenacao_estavel) ... FAIL
test_rejeita_campo_vazio (test_consolidador.Requisitos.test_rejeita_campo_vazio) ... FAIL
test_rejeita_colunas_ausentes (test_consolidador.Requisitos.test_rejeita_colunas_ausentes) ... ERROR
test_rejeita_data_impossivel (test_consolidador.Requisitos.test_rejeita_data_impossivel) ... FAIL
test_rejeita_formato_data_diferente (test_consolidador.Requisitos.test_rejeita_formato_data_diferente) ... FAIL
test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) ... 
  test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='-1') ... FAIL
  test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='NaN') ... FAIL
  test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='Infinity') ... FAIL
  test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='1.234') ... FAIL
  test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='1e3') ... FAIL
test_rejeita_linha_com_campo_extra (test_consolidador.Requisitos.test_rejeita_linha_com_campo_extra) ... FAIL
test_rejeita_referencia_invalida (test_consolidador.Requisitos.test_rejeita_referencia_invalida) ... FAIL
test_rejeita_status_desconhecido (test_consolidador.Requisitos.test_rejeita_status_desconhecido) ... FAIL
test_rejeita_versao_antiga_invalida_mesmo_se_substituida (test_consolidador.Requisitos.test_rejeita_versao_antiga_invalida_mesmo_se_substituida) ... FAIL
test_tarefa_de_hoje_nao_esta_atrasada (test_consolidador.Requisitos.test_tarefa_de_hoje_nao_esta_atrasada) ... FAIL
test_ultima_ocorrencia_substitui_status_responsavel_e_horas (test_consolidador.Requisitos.test_ultima_ocorrencia_substitui_status_responsavel_e_horas) ... FAIL

======================================================================
ERROR: test_rejeita_colunas_ausentes (test_consolidador.Requisitos.test_rejeita_colunas_ausentes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 75, in test_rejeita_colunas_ausentes
    self.consolidar("id,tarefa\n1,teste\n")
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 36, in consolidar
    return mod.consolidar(texto, "2026-10-21")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/inicial/consolidador.py", line 15, in consolidar
    dono = linha["responsavel"]
           ~~~~~^^^^^^^^^^^^^^^
KeyError: 'responsavel'

======================================================================
FAIL: test_concluida_nao_esta_atrasada (test_consolidador.Requisitos.test_concluida_nao_esta_atrasada)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 52, in test_concluida_nao_esta_atrasada
    self.assertEqual(self.consolidar(csv_de(linha(status="concluida")))["totais"]["atrasadas"], 0)
AssertionError: 1 != 0

======================================================================
FAIL: test_csv_vazio_com_cabecalho (test_consolidador.Requisitos.test_csv_vazio_com_cabecalho)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 71, in test_csv_vazio_com_cabecalho
    self.assertEqual(self.consolidar(csv_de())["totais"], {"horas": "0.00", "abertas": 0, "atrasadas": 0})
AssertionError: {'horas': '0.0', 'abertas': 0, 'atrasadas': 0} != {'horas': '0.00', 'abertas': 0, 'atrasadas': 0}
- {'abertas': 0, 'atrasadas': 0, 'horas': '0.0'}
+ {'abertas': 0, 'atrasadas': 0, 'horas': '0.00'}
?                                             +


======================================================================
FAIL: test_decimal_exato (test_consolidador.Requisitos.test_decimal_exato)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 56, in test_decimal_exato
    self.assertEqual(r["totais"]["horas"], "0.30")
AssertionError: '0.30000000000000004' != '0.30'
- 0.30000000000000004
+ 0.30


======================================================================
FAIL: test_erro_cli_nao_produz_json_parcial (test_consolidador.Requisitos.test_erro_cli_nao_produz_json_parcial)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 112, in test_erro_cli_nao_produz_json_parcial
    self.assertEqual(p.returncode, 2)
AssertionError: 0 != 2

======================================================================
FAIL: test_exemplo_integral (test_consolidador.Requisitos.test_exemplo_integral)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 40, in test_exemplo_integral
    self.assertEqual(obtido["tarefas_unicas"], 5)
AssertionError: 6 != 5

======================================================================
FAIL: test_normaliza_espacos_e_status (test_consolidador.Requisitos.test_normaliza_espacos_e_status)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 60, in test_normaliza_espacos_e_status
    self.assertEqual(r["por_responsavel"][0]["responsavel"], "Ana")
AssertionError: ' Ana ' != 'Ana'
-  Ana 
? -   -
+ Ana


======================================================================
FAIL: test_ordenacao_estavel (test_consolidador.Requisitos.test_ordenacao_estavel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 65, in test_ordenacao_estavel
    self.assertEqual([x["responsavel"] for x in r["por_responsavel"]], ["Ana", "Bruno"])
AssertionError: Lists differ: ['Bruno', 'Ana'] != ['Ana', 'Bruno']

First differing element 0:
'Bruno'
'Ana'

- ['Bruno', 'Ana']
+ ['Ana', 'Bruno']

======================================================================
FAIL: test_rejeita_campo_vazio (test_consolidador.Requisitos.test_rejeita_campo_vazio)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 78, in test_rejeita_campo_vazio
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_data_impossivel (test_consolidador.Requisitos.test_rejeita_data_impossivel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 86, in test_rejeita_data_impossivel
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_formato_data_diferente (test_consolidador.Requisitos.test_rejeita_formato_data_diferente)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 90, in test_rejeita_formato_data_diferente
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='-1')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 95, in test_rejeita_horas_invalidas
    with self.subTest(valor=valor), self.assertRaises(ValueError):
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='NaN')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 95, in test_rejeita_horas_invalidas
    with self.subTest(valor=valor), self.assertRaises(ValueError):
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='Infinity')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 95, in test_rejeita_horas_invalidas
    with self.subTest(valor=valor), self.assertRaises(ValueError):
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='1.234')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 95, in test_rejeita_horas_invalidas
    with self.subTest(valor=valor), self.assertRaises(ValueError):
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_horas_invalidas (test_consolidador.Requisitos.test_rejeita_horas_invalidas) (valor='1e3')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 95, in test_rejeita_horas_invalidas
    with self.subTest(valor=valor), self.assertRaises(ValueError):
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_linha_com_campo_extra (test_consolidador.Requisitos.test_rejeita_linha_com_campo_extra)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 99, in test_rejeita_linha_com_campo_extra
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_referencia_invalida (test_consolidador.Requisitos.test_rejeita_referencia_invalida)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 103, in test_rejeita_referencia_invalida
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_status_desconhecido (test_consolidador.Requisitos.test_rejeita_status_desconhecido)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 82, in test_rejeita_status_desconhecido
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_rejeita_versao_antiga_invalida_mesmo_se_substituida (test_consolidador.Requisitos.test_rejeita_versao_antiga_invalida_mesmo_se_substituida)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 107, in test_rejeita_versao_antiga_invalida_mesmo_se_substituida
    with self.assertRaises(ValueError):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised

======================================================================
FAIL: test_tarefa_de_hoje_nao_esta_atrasada (test_consolidador.Requisitos.test_tarefa_de_hoje_nao_esta_atrasada)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 49, in test_tarefa_de_hoje_nao_esta_atrasada
    self.assertEqual(self.consolidar(csv_de(linha(prazo="2026-10-21")))["totais"]["atrasadas"], 0)
AssertionError: 1 != 0

======================================================================
FAIL: test_ultima_ocorrencia_substitui_status_responsavel_e_horas (test_consolidador.Requisitos.test_ultima_ocorrencia_substitui_status_responsavel_e_horas)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/scratch/d14453d5c175/gpt_site_content/kits/codex-revisao/tests/test_consolidador.py", line 46, in test_ultima_ocorrencia_substitui_status_responsavel_e_horas
    self.assertEqual(resultado["por_responsavel"], [{"responsavel": "Bruno", "tarefas": 1, "abertas": 0, "atrasadas": 0, "horas": "2.50"}])
AssertionError: Lists differ: [{'responsavel': 'Ana', 'tarefas': 1, 'abertas': 1, 'atrasa[102 chars]2.5}] != [{'responsavel': 'Bruno', 'tarefas': 1, 'abertas': 0, 'atra[23 chars]50'}]

First differing element 0:
{'responsavel': 'Ana', 'tarefas': 1, 'abertas': 1, 'atrasa[17 chars] 1.0}
{'responsavel': 'Bruno', 'tarefas': 1, 'abertas': 0, 'atra[22 chars].50'}

First list contains 1 additional elements.
First extra element 1:
{'responsavel': 'Bruno', 'tarefas': 1, 'abertas': 0, 'atrasadas': 1, 'horas': 2.5}

- [{'abertas': 1,
?              ^

+ [{'abertas': 0,
?              ^

-   'atrasadas': 1,
?                ^

+   'atrasadas': 0,
?                ^

-   'horas': 1.0,
-   'responsavel': 'Ana',
-   'tarefas': 1},
-  {'abertas': 0,
-   'atrasadas': 1,
-   'horas': 2.5,
+   'horas': '2.50',
?            +   ++

    'responsavel': 'Bruno',
    'tarefas': 1}]

----------------------------------------------------------------------
Ran 19 tests in 0.055s

FAILED (failures=21, errors=1)
