Comments (4)
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.
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.
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.
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)
- [BUG] parser doesn't close file when an IOError error is raising HOT 1
- How to read mo file content and convert to pofile contents HOT 1
- Add support for pathlib HOT 4
- fuzzy count contains obsolete fuzzy messages
- (Un)escape more characters HOT 1
- (faulty issue)
- _BaseEntry/POEntry constructors have bad signatures HOT 1
- New release?
- Drop py<=3.6 and clean up/modernize the code?
- Trying to open a non-existant .po file gives incorrect error HOT 3
- sdist is missing tox.ini
- List of occurrences wrapped differently than xgettext
- "OSError: Syntac Error" when file not found HOT 2
- How to wrap the "msgstr" with the specified width? HOT 2
- [question] How to get same behaviour of po4a in wrap? HOT 3
- Docu: Icons missing
- Docu: Dead link
- Docu: _BaseFile class not documented via Sphinx
- Docu: POEntry.__init__() docstring not in Sphinx output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polib.