Code Monkey home page Code Monkey logo

Comments (9)

KevinHock avatar KevinHock commented on May 16, 2024 1

Sure @yongzx, I can try to write the first test to give you a better idea of what I had in mind, I'll write it sometime today, push it to a branch, and let you know. Apologies for not doing this initially.

from pyt.

yongzx avatar yongzx commented on May 16, 2024 1

Thanks! It's alright, I was just intending to ask you about the test you had in mind.

from pyt.

KevinHock avatar KevinHock commented on May 16, 2024 1

(Merged it so it's just easier than 2 people contributing to one branch.) I think the next step is to call main with random args (e.g. Print def use graph to a file) and make tests that verify it does what it currently does. Let me know if you'd like me to write the first of one of these.

from pyt.

yongzx avatar yongzx commented on May 16, 2024

@KevinHock, can I contribute to solving this issue? (I am still a beginner in OS.)

from pyt.

KevinHock avatar KevinHock commented on May 16, 2024

Hmm, so https://github.com/python-security/pyt/compare/54_tests_for_main is a test for what happens when we pass no args to the program. There is a problem though, if we look at __main__.py from https://codeclimate.com/github/python-security/pyt/coverage, the main() function is what we want more coverage on, so this is only a step closer to running main().

from pyt.

yongzx avatar yongzx commented on May 16, 2024

I will give it a try first. Thanks for the clarification.

from pyt.

yongzx avatar yongzx commented on May 16, 2024

Just understood the codes in __main__.py and how the tests files go together. Will start writing a test for __main__.py.

from pyt.

KevinHock avatar KevinHock commented on May 16, 2024

Sounds good, thanks. Feel free to take your time, let me know if you need any help.

from pyt.

KevinHock avatar KevinHock commented on May 16, 2024

I did this in another branch already, gonna merge in a week or two, but I figured I would close this now.

from pyt.

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.