mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 05:56:00 +08:00
Remove the non-load-only-when-testing check
Contributes to CURA-6005.
This commit is contained in:
parent
8e78582b61
commit
8206fde223
@ -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"
|
||||
|
||||
# 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():
|
||||
def getMetaData():
|
||||
return {}
|
||||
|
||||
def register(app):
|
||||
def register(app):
|
||||
return {"extension": DrivePluginExtension(app)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user