Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
79fcc02b
Commit
79fcc02b
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
put back test_environment_status
parent
c2a6f04d
No related branches found
Branches containing commit
No related tags found
1 merge request
!82
Remove cmd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mpsd_software.py
+13
-0
13 additions, 0 deletions
tests/test_mpsd_software.py
with
13 additions
and
0 deletions
tests/test_mpsd_software.py
+
13
−
0
View file @
79fcc02b
...
@@ -498,6 +498,19 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None)
...
@@ -498,6 +498,19 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None)
return
expected_toolchain_map
return
expected_toolchain_map
def
test_environment_status
(
tmp_path
):
"""
Test that the environment status is correct.
"""
toolchain_map
=
mod
.
environment_status
(
"
fake-release
"
,
tmp_path
)
assert
toolchain_map
is
None
mpsd_release
=
"
dev-23a
"
expected_toolchain_map
=
create_fake_environment
(
tmp_path
,
mpsd_release
)
# check that the environment statuxis is correct
toolchain_map
=
mod
.
environment_status
(
mpsd_release
,
tmp_path
)
# convert each list to a set to ensure that the order doesn't matter
for
microarch
in
expected_toolchain_map
.
keys
():
assert
set
(
toolchain_map
[
microarch
])
==
set
(
expected_toolchain_map
[
microarch
])
def
test_initialise_environment
(
tmp_path
):
def
test_initialise_environment
(
tmp_path
):
"""
Test that init_file is created as expected.
"""
"""
Test that init_file is created as expected.
"""
# test that the init file is created as expected
# test that the init file is created as expected
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment