pycloudinary
pycloudinary copied to clipboard
Migrate test suite to pytest
Taken from #367
It might be worth considering to migrate to pytest
in the near future as suggested here.
The changes should only be rather minimal, but it might be tricky to simultaneously get Python 2.7 and 3.x working.
@ThexXTURBOXx , that's a great idea!
May I work on this ?
@kurayami07734 , sure
I looked at the docs for pytest They require python 3.7+
@kurayami07734 Older versions of pytest work for Python 2.7 and older 3.x releases: https://docs.pytest.org/en/6.2.x/py27-py34-deprecation.html
I'm getting this error when trying to run the test_config.py
test after editing it for pytest
The test suite should be runnable through tox, I would guess
where in the test_archive.py
file is the api_key set?
Hi @kurayami07734
You can set the configuration as mentioned in the documentation here: https://cloudinary.com/documentation/django_integration#configuration
Please let me know if you have further questions.
Best Regards, Sree