forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make dump for fns, classes more stable and helpful (openedx#36188)
The `dump_settings` command currently prints out the raw `repr(...)`s for defined functions, e.g.: "WIKI_CAN_ASSIGN": "<function CAN_ASSIGN at 0x74ce5e9b2020>", In addition to being uninformative, these `at 0x74ce...` hashes change every run, so they appear in the diff as having "changed" every time. With this commit, here's what `dump_settings` will print out for a function instead: "WIKI_CAN_ASSIGN": { "module": "lms.djangoapps.course_wiki.settings", "qualname": "CAN_ASSIGN" },
- Loading branch information
1 parent
c7e4969
commit 76748c4
Showing
2 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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