Revert "Fix running tests in plugin using pytest"

This reverts commit f8f133d2ef.
This commit is contained in:
ChrisTerBeke 2018-11-19 15:10:35 +01:00
parent d65114bd56
commit 9d8583a3b6
5 changed files with 19 additions and 28 deletions

View file

@ -1,7 +1,8 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import configparser # An input for some functions we're testing.
import os # To find the integration test .ini files.
import os.path # To find the integration test .ini files.
import pytest # To register tests with.
import unittest.mock # To mock the application, plug-in and container registry out.
@ -10,15 +11,13 @@ import UM.PluginRegistry # To mock the plug-in registry out.
import UM.Settings.ContainerRegistry # To mock the container registry out.
import UM.Settings.InstanceContainer # To intercept the serialised data from the read() function.
import plugins.LegacyProfileReader.LegacyProfileReader as LegacyProfileReaderModule
from plugins.LegacyProfileReader.LegacyProfileReader import LegacyProfileReader
import LegacyProfileReader as LegacyProfileReaderModule # To get the directory of the module.
from LegacyProfileReader import LegacyProfileReader # The module we're testing.
@pytest.fixture
def legacy_profile_reader():
return LegacyProfileReader()
test_prepareDefaultsData = [
{
"defaults":