Skip to content

fix tests for better ci (quality) #38

Closed

Description

@cthiounn

pynsee's pipeline are in errors since august. Best practices advise to keep it working in order to detect bugs and regressing code.

It seems there are two errors, one minor and one bigger :

minor : a small typo indentation in test_pynsee_sirene.py
complex : the test of the download of the census data is not working, because pandas in the github runner cannot achieve to load the 4gb CSV file

Activity

  1. added
    bug
    on Nov 17, 2021
  2. linogaliana commented on Nov 17, 2021

    @linogaliana
    Contributor
    • Thanks for digging into our CI problems. Yes you are right with the RP problem. Given the current implementation of telechargerDonnees (name will be changed, see More transparent names in download package #37) it is not trivial. A workaround could be to add a nrow argument to the function that would be passed to pandas to avoid trying read the entire file
  3. linogaliana commented on Nov 17, 2021

    @linogaliana
    Contributor

    However, maybe that would make more sense not to test telechargerDonnees with RP. We could just check the requests 200 code to be sure we could find the dataframe if needed

  4. hadrilec commented on Jun 27, 2022

    @hadrilec
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions