Add working directory field in options form
This commit is contained in:
parent
0273f449b8
commit
c67e8742c8
8 changed files with 71 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
"""Test resources module."""
|
||||
|
||||
from glicid_spawner.resources import CPU, GPU_DEFAULTS, MEMORY, gpu_max_duration
|
||||
from glicid_spawner.resources import CPU, GPU_DEFAULTS, MEMORY, get_folders, gpu_max_duration
|
||||
|
||||
|
||||
def test_default_resources():
|
||||
|
@ -22,3 +22,15 @@ def test_gpu_max_duration():
|
|||
# Sorted by defaults order, then unknowns
|
||||
assert list(gpu) == ['None', 'A100', 'T4', 'K80']
|
||||
assert list(gpu.values()) == [24, 1, 3, 3]
|
||||
|
||||
|
||||
def test_resources_workdir():
|
||||
"""Test resources working directories."""
|
||||
assert get_folders('john-doe') == [
|
||||
'/home/john-doe',
|
||||
'/scratch/nautilus/users/john-doe',
|
||||
'/scratch/waves/users/john-doe',
|
||||
'/scratch/nautilus/projects',
|
||||
'/scratch/waves/projects',
|
||||
'/LAB-DATA/',
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue