feat(tests): adicionar testes de regras PDF e componentes frontend
Backend: - test_pdf_rules.py: 108 testes para regras de pontuação do PDF - test_pdf_selos.py: validação de selos disponíveis Frontend: - Configuração Vitest para testes de componentes React - FiltroSelos.test.jsx: testes do componente de filtro - Header.test.jsx: testes do componente de cabeçalho
This commit is contained in:
53
backend/tests/infrastructure/test_pdf_selos.py
Normal file
53
backend/tests/infrastructure/test_pdf_selos.py
Normal file
@@ -0,0 +1,53 @@
|
||||
from src.infrastructure.ranking_store import SELOS_DISPONIVEIS
|
||||
|
||||
|
||||
PDF_SELOS = {
|
||||
"CA",
|
||||
"CAJ",
|
||||
"CAJ_MP",
|
||||
"CAM",
|
||||
"PRESID_CAMARA",
|
||||
"CONS_ATIVO",
|
||||
"AVAL_COMIS",
|
||||
"COORD_COMIS",
|
||||
"AUTOR_GP",
|
||||
"AUTOR_PREMIO",
|
||||
"AUTOR_MENCAO",
|
||||
"ORIENT_GP",
|
||||
"ORIENT_PREMIO",
|
||||
"ORIENT_MENCAO",
|
||||
"COORIENT_GP",
|
||||
"COORIENT_PREMIO",
|
||||
"COORIENT_MENCAO",
|
||||
"ORIENT_POS_DOC",
|
||||
"ORIENT_POS_DOC_PREM",
|
||||
"ORIENT_TESE",
|
||||
"ORIENT_TESE_PREM",
|
||||
"ORIENT_DISS",
|
||||
"ORIENT_DISS_PREM",
|
||||
"CO_ORIENT_POS_DOC",
|
||||
"CO_ORIENT_POS_DOC_PREM",
|
||||
"CO_ORIENT_TESE",
|
||||
"CO_ORIENT_TESE_PREM",
|
||||
"CO_ORIENT_DISS",
|
||||
"CO_ORIENT_DISS_PREM",
|
||||
"MB_BANCA_POS_DOC",
|
||||
"MB_BANCA_POS_DOC_PREM",
|
||||
"MB_BANCA_TESE",
|
||||
"MB_BANCA_TESE_PREM",
|
||||
"MB_BANCA_DISS",
|
||||
"MB_BANCA_DISS_PREM",
|
||||
"IDIOMA_BILINGUE",
|
||||
"IDIOMA_MULTILINGUE",
|
||||
"TITULACAO_MESTRE",
|
||||
"TITULACAO_DOUTOR",
|
||||
"TITULACAO_POS_DOUTOR",
|
||||
"BOL_BPQ_NIVEL",
|
||||
"PPG_COORD",
|
||||
"EVENTO",
|
||||
"PROJ",
|
||||
}
|
||||
|
||||
|
||||
def test_pdf_selos_disponiveis():
|
||||
assert set(SELOS_DISPONIVEIS) == PDF_SELOS
|
||||
Reference in New Issue
Block a user