Skip to content

Update how APITestCase's client is set for django>=5.2 compatibility#220

Open
andres-holvi wants to merge 1 commit into
revsys:mainfrom
andres-holvi:fix-test-client
Open

Update how APITestCase's client is set for django>=5.2 compatibility#220
andres-holvi wants to merge 1 commit into
revsys:mainfrom
andres-holvi:fix-test-client

Conversation

@andres-holvi
Copy link
Copy Markdown

This fixes #215

@andres-holvi andres-holvi marked this pull request as ready for review August 8, 2025 11:19
@andres-holvi andres-holvi mentioned this pull request Aug 8, 2025
Comment thread test_plus/test.py

def setUp(self):
super(APITestCase, self).setUp()
api_client_class = get_api_client()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just noting that api_client_class is a better name than we landed on.

@jefftriplett
Copy link
Copy Markdown
Member

Good catch and sorry we missed it. I strangely didn't get any errors with our 5.2 projects, but I'll cc @frankwiles to publish it.

@andres-holvi
Copy link
Copy Markdown
Author

f-pushed to attempt to fix the linter issue

@radokristof
Copy link
Copy Markdown

When this can be merged?

@jefftriplett
Copy link
Copy Markdown
Member

cc @frankwiles

I missed my pypi invite so I need to resync with you sometime so I can cut releases and nag you less.

@radokristof
Copy link
Copy Markdown

Any updates?

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.

Django 5.2 support

3 participants