From 36bf87c62e9e21829e91a793a4cc2d14edfcfa0a Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 6 Feb 2024 09:36:06 +0100 Subject: [PATCH] feat: add MTS support for Mendix 10.6.x --- buildpack/core/runtime.py | 2 ++ tests/unit/test_deprecations.py | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/buildpack/core/runtime.py b/buildpack/core/runtime.py index c5df6641a..ca1274078 100644 --- a/buildpack/core/runtime.py +++ b/buildpack/core/runtime.py @@ -52,6 +52,8 @@ def is_version_maintained(version): return True if version.major == 9 and version.minor == 24: return True + if version.major == 10 and version.minor == 6: + return True return False diff --git a/tests/unit/test_deprecations.py b/tests/unit/test_deprecations.py index ea76a139f..85626f180 100644 --- a/tests/unit/test_deprecations.py +++ b/tests/unit/test_deprecations.py @@ -8,6 +8,7 @@ # - Mendix 7: 7.23.x (LTS) # - Mendix 8: 8.18.x (LTS) # - Mendix 9: 9.6.x (MTS), 9.12.x (MTS), 9.18.x (MTS), 9.24.x (LTS) +# - Mendix 10: 10.6.x (MTS) class TestCaseMxImplemented(TestCase): @@ -47,3 +48,9 @@ def test_mx9_maintained(self): def test_mx9_not_maintained(self): assert not runtime.is_version_maintained(MXVersion("9.16")) + + def test_mx10_maintained(self): + assert runtime.is_version_maintained(MXVersion("10.6.1")) + + def test_mx10_not_maintained(self): + assert not runtime.is_version_maintained(MXVersion("10.5.1"))