Coder Social home page Coder Social logo

Comments (4)

rodrigoA avatar rodrigoA commented on July 17, 2024

Hi @kloczek,

Looks like another UT framework has been used. Here the unittest is used instead of pytest.

When, at release 1.1.1, I run them like python tests/tests.py or even runtests.sh, I get no errors.

I don't know why only this one fails with pytest.

from polib.

kloczek avatar kloczek commented on July 17, 2024

Correctly written uniitest test suite can be used OOTB with pytest.
What is the sense to perform assertion out of fixed value?

You will never get new warnings or errors because no one is working on unittest.
At ehe moment+8/9 of all modules is using pytest.
Please try to have look on https://docs.pytest.org/en/7.0.x/reference/plugin_list.html. Maybe this will give you a clue why so many python modules are using pytest as base test suite framework ..

from polib.

kthy avatar kthy commented on July 17, 2024

Correctly riyyen uniitest test suite can be used OOTB with pytest.
What is the sense to perform assertion out of fixed value?

Ironically, I assume you mean "correctly written"?

The assertion does not have a fixed value. It asserts that calling polib._is_file(True) returns False. This test guards against polib._is_file('/some/path/to.po') returning True simply because the string is truthy.

I prefer Pytest myself, but if you come barging into a FOSS project, accuse the authors of using a library incorrectly and then try to bully them into fixing your problem simply by appeal to authority, don't be surprised if the response is less than enthusiastic.

from polib.

kloczek avatar kloczek commented on July 17, 2024

I prefer Pytest myself, but if you come barging into a FOSS project, accuse the authors of using a library incorrectly and then try to bully them into fixing your problem simply by appeal to authority, don't be surprised if the response is less than enthusiastic.

My comment was about the CODE .. not you.

from polib.

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.