mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add convenience script for running complete coverage
This commit is contained in:
parent
9b45b56e61
commit
87e0b8629a
6 changed files with 41 additions and 5 deletions
|
@ -5,6 +5,9 @@ import configparser # An input for some functions we're testing.
|
|||
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.
|
||||
import os.path
|
||||
import sys
|
||||
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
|
||||
|
||||
import UM.Application # To mock the application out.
|
||||
import UM.PluginRegistry # To mock the plug-in registry out.
|
||||
|
@ -12,11 +15,13 @@ import UM.Settings.ContainerRegistry # To mock the container registry out.
|
|||
import UM.Settings.InstanceContainer # To intercept the serialised data from the read() function.
|
||||
|
||||
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()
|
||||
try:
|
||||
return LegacyProfileReaderModule.LegacyProfileReader()
|
||||
except TypeError:
|
||||
return LegacyProfileReaderModule.LegacyProfileReader.LegacyProfileReader()
|
||||
|
||||
test_prepareDefaultsData = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue