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
062bb997
Commit
062bb997
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
update preare env with test
parent
631e2eea
No related branches found
No related tags found
2 merge requests
!19
Move linux-debian11 into main
,
!1
Resolve "First draft for user interface for top level install command"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests.py
+7
-1
7 additions, 1 deletion
tests.py
with
7 additions
and
1 deletion
tests.py
+
7
−
1
View file @
062bb997
...
@@ -60,6 +60,12 @@ def test_prepare_environment(tmp_path):
...
@@ -60,6 +60,12 @@ def test_prepare_environment(tmp_path):
assert
"
global
"
in
result
assert
"
global
"
in
result
assert
"
foss2021a-mpi
"
in
result
assert
"
foss2021a-mpi
"
in
result
# Expect an Exception when wrong mpsd_release is provided
with
pytest
.
raises
(
Exception
):
result
=
mod
.
prepare_environment
(
mpsd_release
=
"
wrong-mpsd-release
"
,
script_dir
=
(
script_dir
)
)
def
test_setup_log_cmd
(
tmp_path
):
def
test_setup_log_cmd
(
tmp_path
):
# check that logs/install-software-environment.log is updated when the module is run
# check that logs/install-software-environment.log is updated when the module is run
...
@@ -90,7 +96,7 @@ def test_install_environment(tmp_path):
...
@@ -90,7 +96,7 @@ def test_install_environment(tmp_path):
toolchains
=
[
"
wrong-toolchain
"
],
toolchains
=
[
"
wrong-toolchain
"
],
script_dir
=
(
tmp_path
),
script_dir
=
(
tmp_path
),
)
)
# Expect an Exception when wrong mpsd_release is provided
# Expect an Exception when wrong mpsd_release is provided
( part of prepare_environment)
with
pytest
.
raises
(
Exception
):
with
pytest
.
raises
(
Exception
):
mod
.
install_environment
(
mod
.
install_environment
(
mpsd_release
=
"
wrong-mpsd-release
"
,
mpsd_release
=
"
wrong-mpsd-release
"
,
...
...
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