Giter Site home page Giter Site logo

Comments (9)

marco-c avatar marco-c commented on July 19, 2024 1

👍 for pytest!

from autowebcompat.

skulltech avatar skulltech commented on July 19, 2024

@marco-c Which testing framework should we use for this project? I suggest pytest, it's one of the most robust ones out there.

from autowebcompat.

skulltech avatar skulltech commented on July 19, 2024

I can start working on this once we've decided on the framework to use.

from autowebcompat.

skulltech avatar skulltech commented on July 19, 2024

Okay will start working on it ASAP. :D

from autowebcompat.

marco-c avatar marco-c commented on July 19, 2024

Since @skulltech already has some experience with the project, it's better if someone else who is just starting takes this on to gain some experience.

from autowebcompat.

Shashi456 avatar Shashi456 commented on July 19, 2024

Can i take this up ?

from autowebcompat.

marco-c avatar marco-c commented on July 19, 2024

Sure, go ahead!

from autowebcompat.

Shashi456 avatar Shashi456 commented on July 19, 2024

@marco-c I wanted to know if these are the following unit tests are okay ? And i'm only majorly checking for functions with some parameters

  def test_mkdir():
     direc_path = os.path.dirname(os.path.realpath(__file__)) + "test"
     mkdir(direc_path)
     assert(os.path.exists(direc_path))

  def test_read_labels():
    labels = read_labels(file_name='labels.csv')
    assert('labels' in locals() or 'labels' in globals() )


  def test_write_labels():
    write_labels(label,file_name='test.csv')
    fname = os.path.dirname(os.path.realpath(__file__)) + "\\test.csv"
    assert(os.path.exists(fname)) 

from autowebcompat.

marco-c avatar marco-c commented on July 19, 2024

Hey @Shashi456, please write a PR, it's easier to review than a comment in an issue!
For creating directories and files, I suggest you put everything in a temporary directory (you can use the tempfile library) and clean everything at the end of the test.

from autowebcompat.

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.