Major set of improvements - #24
Open
PetrDlouhy wants to merge 92 commits into
Open
Conversation
…heck if it breaks something)
- introduce get_modeladmins() method for better overridability - split testing functions to decorated function and actual test run for better overriding in tests - improve tests to check for the actual Exception
run every modeladmin in separate subtest
This was referenced Aug 19, 2022
PetrDlouhy
force-pushed
the
bk_devel
branch
8 times, most recently
from
August 26, 2022 17:46
8b3300c to
f9d972a
Compare
PetrDlouhy
force-pushed
the
bk_devel
branch
3 times, most recently
from
August 29, 2022 15:16
1ae44e3 to
6fd5af3
Compare
PetrDlouhy
force-pushed
the
bk_devel
branch
4 times, most recently
from
October 22, 2024 10:11
0f4d556 to
ebf752c
Compare
PetrDlouhy
force-pushed
the
bk_devel
branch
2 times, most recently
from
October 22, 2024 10:32
881a697 to
4778acd
Compare
PetrDlouhy
force-pushed
the
bk_devel
branch
2 times, most recently
from
October 22, 2024 11:57
488f965 to
e2ee492
Compare
fix incorrect assertions for read-only changelist views
Apply Black's suggestions
fix wrong/missing form data being used if a field uses a MultiWidget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have started transformation of
django-admin-smoke-teststo my new project. With it I made whole lot of improvements to it's code.The particular features are relatively well separated into separate commits, but I am not able to keep them in separate PRs without too much overhead. Especially if the essential PRs to build upon don't get merged any time soon.
@SeanHayes If you give me access to this repository, I will maintain the project here. Otherwise I will have to move to my own fork and make the changes also on PyPI
The new features are:
MPTT_ALLOW_TESTING_GENERATORS=Truewhen creating modelsstrict_modewhich doesn't allow failures in model creationsearch_fieldsprefixes when testing specified fields*_setattribute when testing specified fieldsAdminSiteSmokeTestMixinby method overrides:only_modeladminsoptiononly_modeladminsandexclude_modeladmins(model admin name string, model admin full path string, model admin class)list_filterThere are still few things needed to finish this:
create_superuser()get_url()create_models()only_modeladmins,strict_mode,recipes_prefixoptionsIdeally move bakery field generators to the appropriate apps: