We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b8ed8 commit c4dfa71Copy full SHA for c4dfa71
tests/unit/test_core.py
@@ -199,3 +199,16 @@ def test_request_formats():
199
assert isinstance(resp, RestObj)
200
assert resp.name == 'test'
201
202
+
203
+def test_platform_version():
204
+ from sasctl import platform_version
205
206
+ with mock.patch('sasctl.services.model_repository.info') as mock_info:
207
+ mock_info.return_value = {'build': {'buildVersion': '3.7.231'}}
208
+ version = platform_version()
209
+ assert version == '3.5'
210
211
212
+ mock_info.return_value = {'build': {'buildVersion': '3.12.77'}}
213
214
+ assert version == '4.0'
0 commit comments