First cluster is always selected when present
This commit is contained in:
parent
11d878cecf
commit
e3fda2c317
2 changed files with 14 additions and 8 deletions
|
@ -153,13 +153,18 @@ def test_options_form_slurm(mock_cluster):
|
|||
assert '<div class="flex-item-2 slurm-cluster" data-cluster="nautilus">' in html
|
||||
assert '<div class="flex-item-2 slurm-cluster" data-cluster="waves">' in html
|
||||
|
||||
assert '<input type="radio" name="cluster" id="cluster_nautilus" value="nautilus">' in html
|
||||
# The 1st cluster is always selected when present…
|
||||
assert (
|
||||
'<input type="radio" name="cluster" id="cluster_nautilus" value="nautilus" checked>' in html
|
||||
)
|
||||
assert (
|
||||
'<label for="cluster_nautilus" class="btn btn-default btn-block"> Nautilus </label>' in html
|
||||
)
|
||||
|
||||
# Partitions (hidden by default for multi-cluster)
|
||||
assert '<div class="form-group partitions hidden">' in html
|
||||
# … not the second one
|
||||
assert '<input type="radio" name="cluster" id="cluster_waves" value="waves" >' in html
|
||||
|
||||
# Partitions
|
||||
assert '<label for="partition" class="col-sm-3 control-label">Partition:</label>' in html
|
||||
|
||||
assert (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue