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