Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate test suite to pytest #368

Open
ThexXTURBOXx opened this issue Oct 9, 2023 · 9 comments
Open

Migrate test suite to pytest #368

ThexXTURBOXx opened this issue Oct 9, 2023 · 9 comments
Assignees

Comments

@ThexXTURBOXx
Copy link
Contributor

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.

@const-cloudinary
Copy link
Contributor

@ThexXTURBOXx , that's a great idea!

@kurayami07734
Copy link

May I work on this ?

@const-cloudinary
Copy link
Contributor

@kurayami07734 , sure

@kurayami07734
Copy link

I looked at the docs for pytest
They require python 3.7+

@ThexXTURBOXx
Copy link
Contributor Author

@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

@kurayami07734
Copy link

I'm getting this error when trying to run the test_config.py test after editing it for pytest
screenshot-2023-10-20_21:37:03

@ThexXTURBOXx
Copy link
Contributor Author

The test suite should be runnable through tox, I would guess

@kurayami07734
Copy link

where in the test_archive.py file is the api_key set?

@skalahasti-cloudinary
Copy link

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

@kurayami07734 kurayami07734 mentioned this issue Oct 26, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants