Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Test as a Service Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INS Courses
AutPy
Test as a Service Client
Commits
417f0ecf
Commit
417f0ecf
authored
2 years ago
by
Florian Bruhin
Browse files
Options
Downloads
Patches
Plain Diff
Fix coverage on CI
parent
75d57d3b
No related branches found
No related tags found
No related merge requests found
Pipeline
#203685
passed
2 years ago
Stage: lint
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_cli.py
+10
-8
10 additions, 8 deletions
tests/test_cli.py
with
10 additions
and
8 deletions
tests/test_cli.py
+
10
−
8
View file @
417f0ecf
...
...
@@ -117,17 +117,19 @@ class TestArgumentParsing:
nb_path
=
tmp_path
/
"
nb.ipynb
"
nb_path
.
touch
()
nb_path
.
chmod
(
0
)
if
os
.
access
(
nb_path
,
os
.
R_OK
):
pytest
.
skip
(
"
failed to make file unreadable
"
)
# pragma: no cover
result
=
runner
.
run
(
nb_path
)
if
os
.
access
(
nb_path
,
os
.
R_OK
):
# pragma: no cover
# doesn't work on CI due to Docker weirdness
pytest
.
skip
(
"
failed to make file unreadable
"
)
else
:
# pragma: no cover
result
=
runner
.
run
(
nb_path
)
msg
=
f
"
Invalid value for
'
NOTEBOOK
'
: File
'
{
nb_path
}
'
is not readable.
"
expected
.
usage_lines
()
expected
.
error_panel
(
msg
)
expected
.
exit_code
=
2
msg
=
f
"
Invalid value for
'
NOTEBOOK
'
: File
'
{
nb_path
}
'
is not readable.
"
expected
.
usage_lines
()
expected
.
error_panel
(
msg
)
expected
.
exit_code
=
2
expected
.
check
(
result
)
expected
.
check
(
result
)
def
test_wrong_location
(
...
...
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