Skip to content

Commit

Permalink
feat: add MTS support for Mendix 10.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pommi committed Feb 6, 2024
1 parent b150f95 commit 36bf87c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildpack/core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
7 changes: 7 additions & 0 deletions tests/unit/test_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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"))

0 comments on commit 36bf87c

Please sign in to comment.