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
aa4e8033
Commit
aa4e8033
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
update broken test ( not part of migration)
parent
8cf6fd0f
No related branches found
No related tags found
1 merge request
!70
Convert to a package
Pipeline
#371918
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mpsd_software.py
+5
-2
5 additions, 2 deletions
tests/test_mpsd_software.py
with
5 additions
and
2 deletions
tests/test_mpsd_software.py
+
5
−
2
View file @
aa4e8033
...
...
@@ -190,13 +190,16 @@ def test_record_script_execution_summary(tmp_path):
def
test_install_environment_wrong_package_set
(
tmp_path
):
"""
Test exception is raised for non-existing package_set.
"""
#
Expect an Exception
when wrong package_sets are provided
with
pytest
.
raises
(
Exception
)
:
#
exits with exit code 1
when wrong package_sets are provided
with
pytest
.
raises
(
SystemExit
)
as
e
:
mod
.
install_environment
(
mpsd_release
=
"
dev-23a
"
,
package_sets
=
[
"
wrong-package_set
"
],
root_dir
=
(
tmp_path
),
)
assert
e
.
type
==
SystemExit
assert
e
.
value
.
code
==
1
def
test_install_environment_wrong_mpsd_release
(
tmp_path
):
...
...
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