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
Merge requests
!57
Try remove cmd
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Try remove cmd
try-remove-cmd
into
main
Overview
2
Commits
20
Pipelines
13
Changes
1
Merged
Ashwin Kumar Karnad
requested to merge
try-remove-cmd
into
main
1 year ago
Overview
2
Commits
20
Pipelines
13
Changes
1
Expand
0
0
Merge request reports
Viewing commit
88088d69
Show latest version
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
88088d69
redesign the status test
· 88088d69
Ashwin Kumar Karnad
authored
1 year ago
tests.py
+
7
−
0
Options
@@ -461,6 +461,13 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None)
toolchain_lua_file
.
touch
()
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
():
Loading