Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
core
picodata
Commits
769b6119
Commit
769b6119
authored
2 years ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
test: support other kinds of call results
parent
110f2057
No related branches found
No related tags found
1 merge request
!361
Test/sharding is failsafe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/conftest.py
+2
-2
2 additions, 2 deletions
test/conftest.py
with
2 additions
and
2 deletions
test/conftest.py
+
2
−
2
View file @
769b6119
...
@@ -143,9 +143,9 @@ def normalize_net_box_result(func):
...
@@ -143,9 +143,9 @@ def normalize_net_box_result(func):
match
result
.
data
:
match
result
.
data
:
case
[]:
case
[]:
return
None
return
None
case
[
x
]:
case
[
x
]
|
[
x
,
None
]
:
return
x
return
x
case
[
None
,
str
(
err
)
]:
case
[
None
,
err
]:
raise
ReturnError
(
err
)
raise
ReturnError
(
err
)
case
[
*
args
]:
case
[
*
args
]:
raise
MalformedAPI
(
*
args
)
raise
MalformedAPI
(
*
args
)
...
...
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