Closed vabc3 closed 2 years ago
Thanks for your kind words! This was a learning project for me while getting started with Python :)
I'll see what I can do regarding pytest
I started work on this and the branch pytest-support already supports the sample test you posted
from autofaker import autodata
@autodata()
def test_create_str_using_decorator(text: str):
assert text is not None
I'm adding a few more comprehensive test cases so I'm sure I don't introduce breaking changes
@vabc3 I implemented this request and will release it to PyPi as soon as I update the docs, sample code, and resolve SonarCloud issues
This is now release to PyPi as AutoFaker v0.4.9
Just tried the new release, it works perfectly. Thanks for the great work, that's so cool.
This is a very helpful project. Cannot imagine there is no AutoFixture correspondence in python.
It would be more useful if there is pytest support:
Output:
NotImplementedError: This way of creating anonymous objects are only supported from unit test