Writing some tests for a setting that has its choices set based on Group names, I found that the InvenTreeSettings
pull their validation data from the DB, and not from test data when running tests.
'choices': [(x.name, x.name) for x in Group.objects.all()]
print(InvenTreeSetting.get_setting_choices('THE_SETTING'))
returns data from the dev/prod DB, not the test data.Populate settings using models with test data, not DB data
0.15.0 dev
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too