Giter Club home page Giter Club logo

Comments (11)

lipemorais avatar lipemorais commented on August 30, 2024 3

I can think now in two ways:

  1. I would isolate the integration point, in this case is fetch and unit test translate and clean with a mocked example files.

  2. In a second way I would unit test the three steps using mock while transform the integration test into a journey test, that should test this workflow without any mocks and let it run in Travis CI.

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024 2

cc @lipemorais

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024 2

this is against TDD, but

In Brazilian Portuguese TDD means teste depois do deploy, right?

from serenata-toolbox.

lipemorais avatar lipemorais commented on August 30, 2024 2

Hey!
Do we consider it half done with the PR #68, now it should be done for CEAP also.

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024 1

Notes by @lipemorais in #53 about def __translate_file(self, csv_path):

This internal method looks a little big, could we break it to make the parts smaller and more meaningful and clear?

At this line looks that is a translation from portuguese to english but it's changing state of categories variable here. It is making this code more complex than it could be. :/

May it could be done in a function just to give it a name and help with clarity.
Show all reviewers

(this last comment about line 93)

from serenata-toolbox.

lipemorais avatar lipemorais commented on August 30, 2024 1

I'm working on it. :)

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024

Probably next week I can handle that. If anyone wants to pair on that, drop a line saying day/time it could work for you.

from serenata-toolbox.

anaschwendler avatar anaschwendler commented on August 30, 2024

We we're thinking about testing:

  • Check the translations
  • The clean() method unify all the senate datasets, maybe test if the reimbursements are getting concatenated (this is against TDD, but ¯_(ツ)_/¯ )
  • The fetch() method does not check if the senate website is available to fetch the datasets, maybe test it or implement something should be good :)

from serenata-toolbox.

lipemorais avatar lipemorais commented on August 30, 2024

I'm run the tests and I just realized one thing, because it's taking more time than I expect.

Test this PR would even easier with unit tests. Just fetch needs integration, translate and clean could use only use unit test with a example files. :/

from serenata-toolbox.

anaschwendler avatar anaschwendler commented on August 30, 2024

@lipemorais Yes, I was talking about that tests taking so long to run yesterday in your daily meeting, and I didn't know what to do, do you have any suggestion for us? Something like a light or something? I really doesn't know what to do :T

I just really tested what I wanted to do, and didn't know how to properly refactor it

from serenata-toolbox.

anaschwendler avatar anaschwendler commented on August 30, 2024

Ok, I'll close it ;)

from serenata-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.