mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-20 03:31:59 +02:00
[tests] Use the NodePluginManager
instance in the unit tests
The plugin manager is now effectively used for all the operations that involve registering or unregistering nodes.
This commit is contained in:
parent
28042dd2ad
commit
777ed4207e
8 changed files with 103 additions and 63 deletions
|
@ -2,8 +2,9 @@
|
|||
# coding:utf-8
|
||||
|
||||
from meshroom.core.graph import Graph, loadGraph, executeGraph
|
||||
from meshroom.core import desc, registerNodeType, unregisterNodeType
|
||||
from meshroom.core import desc, pluginManager
|
||||
from meshroom.core.node import Node
|
||||
from meshroom.core.plugins import NodePlugin
|
||||
|
||||
|
||||
class NodeWithAttributesNeedingFormatting(desc.Node):
|
||||
|
@ -100,13 +101,15 @@ class NodeWithAttributesNeedingFormatting(desc.Node):
|
|||
]
|
||||
|
||||
class TestCommandLineFormatting:
|
||||
nodePlugin = NodePlugin(NodeWithAttributesNeedingFormatting)
|
||||
|
||||
@classmethod
|
||||
def setup_class(cls):
|
||||
registerNodeType(NodeWithAttributesNeedingFormatting)
|
||||
pluginManager.registerNode(cls.nodePlugin)
|
||||
|
||||
@classmethod
|
||||
def teardown_class(cls):
|
||||
unregisterNodeType(NodeWithAttributesNeedingFormatting)
|
||||
pluginManager.unregisterNode(cls.nodePlugin)
|
||||
|
||||
def test_formatting_listOfFiles(self):
|
||||
inputImages = ["/non/existing/fileA", "/non/existing/with space/fileB"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue