Skip to content

Conversation

@jochenklar
Copy link
Member

This PR enables the tests for the openapi endpoints again. I added the optional dependency to the dev setup, because ... why not? We already test with allauth which is optional as well. The only drawback would be that we somehow mess up the settings without openapi, but I am pretty sure that we will notice this using e.g. a test deployment.

I changed the setup to use drf_spectacular_sidecar to not use CDNs. (We just got rid of them ...).

I also added a login fixture which we can use to force login users in the tests. TBD.

@MyPyDavid MyPyDavid added this to the RDMO 2.3.0 milestone Apr 7, 2025
Copy link
Member

@MyPyDavid MyPyDavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I would keep it in the tests!

@jochenklar jochenklar merged commit f7448df into 2.3.0 Apr 7, 2025
19 checks passed
@afuetterer
Copy link
Member

Why is django-rest-swagger still a dependency?

"django-rest-swagger>=2.2,<3.0",

If you replaced it completely with drf-spectacular please remove it.

@MyPyDavid
Copy link
Member

Why is django-rest-swagger still a dependency?

"django-rest-swagger>=2.2,<3.0",

If you replaced it completely with drf-spectacular please remove it.

thanks for spotting this @afuetterer! I'll make new PR and remove it.

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

Successfully merging this pull request may close these issues.

4 participants