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

Correct problems with tests to get django-cachalot to work with 4.2 #234

Merged

Conversation

jacklinke
Copy link
Contributor

@jacklinke jacklinke commented May 25, 2023

Description

In addition to the changes @Andrew-Chen-Wang implemented, this additional work aims to correct the test issues his PR was experiencing.

  • Updated tests to account for the BEGIN and COMMIT query changes in Django 4.2
  • Standardized django version comparisons in tests

I have not been able to verify tests locally, but based this work on the tox output in CI. Once merged into noripyt:andrew-wang/dj4.2 and run through CI again, I will happily clean up any remaining minor issues.

- Updated tests to account for the `BEGIN` and `COMMIT` query changes in Django 4.2
- Standardized django version comparisons in tests
@Andrew-Chen-Wang
Copy link
Collaborator

thank you for this! Much appreciated!

@Andrew-Chen-Wang Andrew-Chen-Wang merged commit 27eaaa5 into noripyt:andrew-wang/dj4.2 May 25, 2023
Andrew-Chen-Wang added a commit that referenced this pull request Jul 11, 2023
* Add Django 4.1-4.2 and Python 3.11 support (Fixes #228)
* Increment version to 4.5.0

* Remove Python 2 and Django 2.2 code

* Fix CI supported versions

* Correct problems with tests (#234)

* Fix simple error

* Andrew wang/dj4.2 Improve assertNumQueries by filtering out transaction-related queries (#238)

* Andrew wang/dj4.2 (#239)

* Added a FilteredTransactionTestCase, updated tests.

* Added more filtered tests

* Removed Python <3.10 from the tox envlist for Django main.

* Enhanced error message to include current database vendor of the connection for better easier troubleshooting.

* Use python3.10 for GH workflows, fix postgres range issues in tests.

* Check if psycopg3 is in use, if so, add psycopg3 types to CACHABLE_PARAM_TYPES.

---------

Co-authored-by: Benedikt Willi <[email protected]>

---------

Co-authored-by: Jack Linke <[email protected]>
Co-authored-by: Jack Linke <[email protected]>
Co-authored-by: Benedikt Willi <[email protected]>
Co-authored-by: Benedikt Willi <[email protected]>
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.

2 participants