Skip to content

Commit 583d113

Browse files
author
Vasileios Karakasis
committed
Update unit tests
1 parent 33aef44 commit 583d113

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

unittests/resources/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
'launcher': 'srun',
4747

4848
# Use the extensive syntax here
49-
'modules': [{'name': 'foogpu', 'collection': False, 'path': None}],
49+
'modules': [
50+
{'name': 'foogpu', 'collection': False, 'path': '/foo'}
51+
],
5052
'variables': [['FOO_GPU', 'yes']],
5153
'resources': [
5254
{

unittests/test_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def test_select_subconfig():
274274
assert (site_config.get('systems/0/partitions/0/resources/@gpu/name') ==
275275
'gpu')
276276
assert site_config.get('systems/0/partitions/0/modules') == [
277-
{'name': 'foogpu', 'collection': False, 'path': None}
277+
{'name': 'foogpu', 'collection': False, 'path': '/foo'}
278278
]
279279
assert (site_config.get('systems/0/partitions/0/variables') ==
280280
[['FOO_GPU', 'yes']])
@@ -352,6 +352,9 @@ def test_system_create():
352352
assert partition.access == []
353353
assert partition.container_environs == {}
354354
assert partition.local_env.modules == ['foogpu']
355+
assert partition.local_env.modules_detailed == [{
356+
'name': 'foogpu', 'collection': False, 'path': '/foo'
357+
}]
355358
assert partition.local_env.variables == {'FOO_GPU': 'yes'}
356359
assert partition.max_jobs == 10
357360
assert len(partition.environs) == 2

0 commit comments

Comments
 (0)