mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:09:00 +08:00
Rename VersionUpgrade plug-in from 40 to 35
Because the next version is going to be called 3.5, not 4.0.
This commit is contained in:
parent
d6046c725a
commit
b0e7562579
@ -60,8 +60,8 @@ _RENAMED_MATERIAL_PROFILES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## Upgrades configurations from the state they were in at version 3.4 to the
|
## Upgrades configurations from the state they were in at version 3.4 to the
|
||||||
# state they should be in at version 4.0.
|
# state they should be in at version 3.5.
|
||||||
class VersionUpgrade34to40(VersionUpgrade):
|
class VersionUpgrade34to35(VersionUpgrade):
|
||||||
|
|
||||||
## Gets the version number from a CFG file in Uranium's 3.3 format.
|
## Gets the version number from a CFG file in Uranium's 3.3 format.
|
||||||
#
|
#
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
from . import VersionUpgrade34to40
|
from . import VersionUpgrade34to35
|
||||||
|
|
||||||
upgrade = VersionUpgrade34to40.VersionUpgrade34to40()
|
upgrade = VersionUpgrade34to35.VersionUpgrade34to35()
|
||||||
|
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "Version Upgrade 3.4 to 4.0",
|
"name": "Version Upgrade 3.4 to 3.5",
|
||||||
"author": "Ultimaker B.V.",
|
"author": "Ultimaker B.V.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Upgrades configurations from Cura 3.4 to Cura 4.0.",
|
"description": "Upgrades configurations from Cura 3.4 to Cura 3.5.",
|
||||||
"api": 5,
|
"api": 5,
|
||||||
"i18n-catalog": "cura"
|
"i18n-catalog": "cura"
|
||||||
}
|
}
|
@ -4,12 +4,12 @@
|
|||||||
import configparser #To parse the resulting config files.
|
import configparser #To parse the resulting config files.
|
||||||
import pytest #To register tests with.
|
import pytest #To register tests with.
|
||||||
|
|
||||||
import VersionUpgrade34to40 #The module we're testing.
|
import VersionUpgrade34to35 #The module we're testing.
|
||||||
|
|
||||||
## Creates an instance of the upgrader to test with.
|
## Creates an instance of the upgrader to test with.
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def upgrader():
|
def upgrader():
|
||||||
return VersionUpgrade34to40.VersionUpgrade34to40()
|
return VersionUpgrade34to35.VersionUpgrade34to35()
|
||||||
|
|
||||||
test_upgrade_version_nr_data = [
|
test_upgrade_version_nr_data = [
|
||||||
("Empty config file",
|
("Empty config file",
|
Loading…
x
Reference in New Issue
Block a user