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

Support django 4.2 #352

Merged
merged 11 commits into from
Jun 1, 2023
Merged

Support django 4.2 #352

merged 11 commits into from
Jun 1, 2023

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented May 31, 2023

No description provided.

amstilp and others added 10 commits May 31, 2023 13:27
assertQuerysetEqual is being deprecated in Django 5.1
Django's TestCase class deprecated the assertQuerysetEqual method
in favor of assertQuerySetEqual. To handle testing on multiple versions
of Django, when running tests if the Django version is < 4.2, redefine
TestCase and add an assertQuerySetEqual method that calls the
assertQuerysetEqual method. This is similar to handling the change
in DeleteView in Django 4.0.
Django 4.1 is introducing a new template for rendering divs in
forms. When testing using Django 4.1 or higher, set the temporary
FORM_RENDERER setting. This setting will be removed in Django 6.0.
https://docs.djangoproject.com/en/4.2/releases/4.1/#forms-4-1
The name included dj{} instead of django{}.
The idea is that tox should skip django42 when running on mariadb
10.3 job.
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #352 (34f7772) into main (f89eb7e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 34f7772 differs from pull request most recent head 248277e. Consider uploading reports for the commit 248277e to get more accurate results

@@           Coverage Diff           @@
##             main     #352   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files         117      117           
  Lines       20536    20547   +11     
=======================================
+ Hits        20497    20508   +11     
  Misses         39       39           
Impacted Files Coverage Δ
anvil_consortium_manager/tests/settings/test.py 100.00% <100.00%> (ø)
anvil_consortium_manager/tests/test_models.py 98.93% <100.00%> (+<0.01%) ⬆️
anvil_consortium_manager/tests/test_views.py 99.91% <100.00%> (ø)
anvil_consortium_manager/tests/utils.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

This class is a factory to create a TestWorkspaceData, but the
pytest runner is finidng it. Modify the pytest.ini file to tell
it to ignore this class.
@amstilp amstilp merged commit df384e8 into main Jun 1, 2023
14 checks passed
@amstilp amstilp mentioned this pull request Jun 1, 2023
@amstilp amstilp deleted the feature/django-4.2 branch October 25, 2023 23:39
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.

None yet

1 participant