Remove the non-load-only-when-testing check

Contributes to CURA-6005.
This commit is contained in:
Diego Prado Gesto 2018-12-18 16:24:13 +01:00
parent 8e78582b61
commit 8206fde223

View file

@ -1,16 +1,10 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import os
from .src.DrivePluginExtension import DrivePluginExtension
is_testing = os.getenv('ENV_NAME', "development") == "testing"
def getMetaData():
return {}
# Only load the whole plugin when not running tests as __init__.py is automatically loaded by PyTest
if not is_testing:
from .src.DrivePluginExtension import DrivePluginExtension
def getMetaData():
return {}
def register(app):
return {"extension": DrivePluginExtension(app)}
def register(app):
return {"extension": DrivePluginExtension(app)}