test: adiciona cliente_fgv.py e testes unitarios#356
Open
analeticiaa wants to merge 542 commits into
Open
Conversation
…s-fora bug: retira servidores fora do orgao
…de ação ao invés da UG emitente
…cs_pfs feat: altera a ingestão de ncs e pfs de teds para usar o id do plano de ação ao invés da UG emitente
…dito fix/dag-nota-de-crédito
fix/pf-tesouro-ingest
Quebra dos schemas para modularização
Co-authored-by: Mateus Castro <mateus.castro3@gmail.com>
…s-e-plano-acao-transferegov feat(airflow): ingestao de programas e plano de acao transferegov
…late-de-commit feat(docs): adiciona template de mensagem de commit
…rio-ted Feat/resumo orcamentario ted
fix: sources realocado corretamente corrige cosmos bug
Co-authored-by: Letícia Hladczuk <leticia.cassia.hr@gmail.com>
Co-authored-by: Letícia Hladczuk <leticia.cassia.hr@gmail.com>
…mendas feat: adiciona localizador de gasto e região PT nas camadas de emendas MIR
…icao Doc/guia de contribuicao
…conv feat: adiciona dbt_project
…e_contribuicao revert: desfaz CONTRIBUTING.md adicionado incorretamente
…convenio feat: cruzamento das tabelas de proposta e convenio
…s domicílios (GovHub-br#287) * feat(ibge): pipeline FTP Censo 2022 quilombolas alfabetização e domicílios * fix(ibge): corrige ReDoS no parser quilombolas e PK/upsert no Postgres
Co-authored-by: Letícia Hladczuk <leticia.cassia.hr@gmail.com>
feat: sufix argumento opcional
…icao fix: Correção do guia de contribuição
…#329) * feat(tests): adiciona teste para plugin cliente_base * feat(make): automatiza geração do arquivo de cobertura dos testes * fix: altera protocolo http para htpps no teste do cliente_base * chore: atualiza nome da pasta e arquivo do teste de plugins e cliente base * fix(tests): inclui helpers no sys.path do conftest --------- Co-authored-by: Davi de Aguiar Vieira <143732704+davi-aguiar-vieira@users.noreply.github.com>
Co-authored-by: Livia Rodrigues <liviarodriguesr@gmail.com>
Co-authored-by: Livia Rodrigues <liviarodriguesre@gmail.com>
|
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
Implementa o plugin
cliente_fgv.pye seus testes unitários, conforme solicitado na issue.O arquivo
airflow_lappis/plugins/cliente_fgv.pynão existia no repositório — foi criado seguindo o padrão decliente_abecip.py, herdando deClienteBase.Arquivos alterados
airflow_lappis/plugins/cliente_fgv.py— cliente HTTP para a API de índices econômicos da FGVtests/test_plugins/test_cliente_fgv.py— testes unitários com mock das requisições HTTPTestes
test_get_indices_success— valida chamada aGET /indicestest_get_serie_success_with_all_params— validaget_serie()com todos os parâmetrostest_get_serie_success_only_codigo— validaget_serie()sem datas opcionaistest_get_serie_network_isolation_and_payload_parsing— mock direto nohttpx.ClientCloses #311