Code Monkey home page Code Monkey logo

Comments (5)

questionmarcus avatar questionmarcus commented on June 8, 2024

Keen on giving a hand where I can. I've a little experience in Python but not in unit testing.

What kind of tests have you got in mind?

from dotaupdatesbot.

alaskaa avatar alaskaa commented on June 8, 2024

I would also be happy to help up and brush up on my unit testing knowledge! I'm also quite new but this sounds manageable and @questionmarcus and me could write different tests? Happy to discuss here.

from dotaupdatesbot.

alaskaa avatar alaskaa commented on June 8, 2024

At the expense of this being a silly newbie question: Once we have everything installed, set up, tokens set up, own bot created etc and the telegram bot AnnouncerDude set up - in order to write the tests, what are we actually supposed to run? (I've put the tokens into the settings.py and changed the name as well.)

from dotaupdatesbot.

mvi-x avatar mvi-x commented on June 8, 2024

Have you decided what you'd like to use for tests? Unittest / pytest / something else?

from dotaupdatesbot.

zachkont avatar zachkont commented on June 8, 2024

@mvi-x I was thinking unit tests to begin with but pytest looks interesting. The end goal would be to have a full start-to-end test scenario since the functionality is not that extensive, including testing of commands and of the automated updates (probably by deleting the latest entry in the json files).

Generally, the point is to fully automate pull requests, hopefully.

@questionmarcus & @alaskaa I guess you could start by writing some unit tests for the updater.py functions. As simple as they may be, it would be a solid start.

@alaskaa the links that I have included are a good start for your question (no question is silly btw) so I suggest giving those a look. Also, pytest that @mvi-x mentioned looks nice, I have never used it though. I probably should have set up a base for you guys, sorry. I'll try doing that next weekend if none has pushed anything yet

from dotaupdatesbot.

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.