mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
7129a35900
commit
45167fe2f0
@ -124,6 +124,8 @@ translated_javascript_urls = [
|
||||
|
||||
# Integration plugin urls
|
||||
integration_urls = []
|
||||
|
||||
|
||||
def get_integration_urls():
|
||||
urls = []
|
||||
for plugin in settings.INTEGRATION_PLUGINS.values():
|
||||
@ -131,6 +133,7 @@ def get_integration_urls():
|
||||
urls.append(plugin.urlpatterns)
|
||||
return urls
|
||||
|
||||
|
||||
try:
|
||||
if settings.PLUGIN_TESTING or InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'):
|
||||
integration_urls = get_integration_urls()
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
from django.test import TestCase
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class SampleIntegrationPluginTests(TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user