Commit 4161838c authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: decouple platform tests from CUDA_VERSIONS list

parent 8cb8d2d2
......@@ -5,6 +5,8 @@
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
from unittest import mock
import pytest
import fsl_ci.platform as platform
......@@ -98,13 +100,9 @@ def test_get_skip_platform():
tests = [
(noarch_meta, ('linux-64 '
'macos-64 '
'linux-64-cuda-9.2 '
'linux-64-cuda-10.2 '
'linux-64-cuda-11.0')),
'linux-64-cuda')),
(binary_meta, ('noarch '
'linux-64-cuda-9.2 '
'linux-64-cuda-10.2 '
'linux-64-cuda-11.0')),
'linux-64-cuda')),
(cuda_meta, ('noarch '
'linux-64 '
'macos-64'))
......@@ -126,7 +124,11 @@ def test_get_platform_ids():
(binary_meta, ['linux-64', 'macos-64']),
(cuda_meta, ['linux-64-cuda-9.2',
'linux-64-cuda-10.2',
'linux-64-cuda-11.0'])]
for input, expected in tests:
assert platform.get_platform_ids(input) == expected
'linux-64-cuda-11.0',
'linux-64-cuda-11.1',
'linux-64-cuda-11.3'])]
with mock.patch('fsl_ci.platform.CUDA_VERSIONS',
['9.2', '10.2', '11.0', '11.1', '11.3']):
for input, expected in tests:
assert platform.get_platform_ids(input) == expected
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment