Test(cliente_pncp): Adiciona testes unitários para cliente PNCP#404
Open
Joa0V wants to merge 4 commits into
Open
Test(cliente_pncp): Adiciona testes unitários para cliente PNCP#404Joa0V wants to merge 4 commits into
Joa0V wants to merge 4 commits into
Conversation
- Testes unitários para cliente_pncp.py em tests/test_plugins/test_cliente_pncp.py - Alterações em cliente_pncp.py em airflow_lappis/plugins/cliente_pncp.py
- Remove testes de argumentos obrigatórios apontados pelo SonarQubeCloud
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Descrição
Adição de testes unitários para cliente_pncp.py em tests/test_plugins/test_cliente_pncp.py e alterações em cliente_pncp.py em airflow_lappis/plugins/cliente_pncp.py
Segundo a documentação da api pncp consulta o código de modalidade de contratação é um parâmetro obrigatório. O argumento codigo_modalidade_contratacao no método get_contratacoes_publicacao() de ClientePNCP foram modificadas de Optional[int] = None para int.
Loop em get_contratacoes_publicacao_paginado() sobrescrevia argumento max_paginas passado ao método com retorno do total de páginas da api. A lógica do laço foi modificada para levar em consideração o argumento max_paginas passado ao método.
Tipo de mudança
Issues relacionadas
Closes #316
Como testar / validar
Evidências
Checklist
upstream/mainouorigin/main