mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Fix running tests in plugin using pytest
This commit is contained in:
parent
951a21ead7
commit
f8f133d2ef
5 changed files with 28 additions and 19 deletions
|
@ -1,15 +1,16 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
import configparser
|
||||
import pytest
|
||||
|
||||
import configparser #To check whether the appropriate exceptions are raised.
|
||||
import pytest #To register tests with.
|
||||
from plugins.VersionUpgrade.VersionUpgrade26to27.VersionUpgrade26to27 import VersionUpgrade26to27
|
||||
|
||||
import VersionUpgrade26to27 #The module we're testing.
|
||||
|
||||
## Creates an instance of the upgrader to test with.
|
||||
@pytest.fixture
|
||||
def upgrader():
|
||||
return VersionUpgrade26to27.VersionUpgrade26to27()
|
||||
return VersionUpgrade26to27()
|
||||
|
||||
|
||||
test_cfg_version_good_data = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue