Comments (12)
First of all, thank you for creating ddt
. I use it regularly at work and in my personal projects so it's a shame to hear that you will no longer maintain it, but of course I understand the decision. One of the things I appreciate about ddt
is that I can use whichever test runner I like and the tests can remain standard library compatible.
I'll have a look at the code, but I doubt that I would be able maintain it myself.
Thanks again.
from ddt.
Hi, I wanted to let you know that I could take on your project. I'm looking for a project to maintain in my spare time and ddt
was of much use to me lately. I have 3+ years of professional development in python and even longer as a hobby developer.
from ddt.
Hey, I'm not 100% keen on taking over the project, but am interested to know exactly how you were able to replace ddt with py.test. If all ddt's functionality is available in maintained libraries, I think the best way to go would just be to add documentation about this to the readme.
I'm happy to help you in any way you might need, just let me know.
from ddt.
Jazzband maintains a number of community-supported Python repos. Consider transferring ownership there.
from ddt.
@interrogator, pytests' parameterization functionality replaced ddt
for me. See https://docs.pytest.org/en/latest/parametrize.html.
from ddt.
@clintonb is pytest's parameterization compatible with the standard library test runner? ie. Can I @mark parametrize
a unittest.TestCase
subclass class method and have it work with when I run unittest
?
from ddt.
No clue, but the point of pytest is to replace unittest. pytest supports running unittest-style tests. I recommend trying it for yourself to see how it works.
from ddt.
For pytest, django-dbdiff may help.
from ddt.
Seems to be resolved for now.
from ddt.
@clintonb is pytest's parameterization compatible with the standard library test runner? ie. Can I
@mark parametrize
aunittest.TestCase
subclass class method and have it work with when I rununittest
?
mark.parametrize is not supporting classes that inherit from unittest.TestCase
... and probably never will be (link), so IMO ddt library has still reason to be maintained.
from ddt.
@DamianSkrzypczak I'd argue that's more motivation to move to py.test
-style tests (at least for those tests which need parameterization) and ditch unittest
. That said, it's a moot point since @wswld seems to be maintaining the project.
Note that I no longer use Python on a daily basis (new job uses Ruby), so don't take any of this as gospel. I'm just an Internet guy who finds py.test
better than unittest
.
from ddt.
Hi! Thanks for response 😄
[You can skip this part, it's just personal point of view]
Don't get me wrong, both solutions (unittest/pytest) have some pros and cons for me,
for example:
cons:
- pytest is getting very big and "universal" and well... I think believe that "a jack of all trades is master of none"
- unittest in opposition is very very limited and simple.
pros:
- pytest is very intuitive and powerful, it's extensions system is pure gold
- unittest has very very nice assertions system, it may be better (expected/observed value) but it's still good, assert statement is something that I really dislike in python and I think it should be "functioned" as it was done with "print"... unit testing using it is... IMO just wrong.
[This is true message 😄]
I hope for future that pytest will be included in standard library, but as long as unittest is included there... it's more official and recommended solution, just because of this little fact. ^.^ It just makes it a little more trustworthy and then... reasonable for maintenance.
from ddt.
Related Issues (20)
- Add @named_data to give tests meaningful names. HOT 1
- Consider dropping support for all EOL versions Python 2.7 - 3.6 HOT 1
- How to import `named_data`? HOT 1
- Allow `named_data` to take tuples (any `collections.Sequence`)
- Async tests no longer work on python 3.11
- sdist is missing `tox.ini` HOT 6
- 1.7.0: `flake8` reports `pycodestyle` errors HOT 5
- 1.7.0: Has Python 2.7 classifiers but is Python 3+ only. HOT 2
- ddt interaction with setUp and tearDown HOT 2
- Django runserver finds that @file_data has loaded the data and cannot be changed[Help me] HOT 1
- Test Case Ordinal Numbering zero-pads poorly HOT 1
- Index only test names HOT 1
- New release causes error on import HOT 4
- 1.4.1: test suite is failing HOT 2
- Cleanup
- Docs → Example Usage: contents of example data files not shown? HOT 1
- (DDT+Excel+Unittest)How to control the execution of each test case HOT 2
- Test failure with PyYAML 5.4.1 HOT 4
- Signature change of `ddt.idata` in 1.4.3 breaks downstream uses
- @ifile_data - an iterable @file_data decorator HOT 1
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 ddt.