testing safe url checks

This commit is contained in:
Matthias 2021-10-17 19:50:21 +02:00
parent 487ac594bb
commit 5dd36c7587
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -127,7 +127,7 @@ translated_javascript_urls = [
# Integration plugin urls
interation_urls = []
if InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'):
if settings.TESTING or InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'):
for plugin in settings.INTEGRATION_PLUGINS.values():
if plugin.mixin_enabled('urls'):
interation_urls.append(plugin.urlpatterns)