Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
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
ssa
workspaces
Merge requests
!329
WS-474: REST calls and CLI for calibration ingestion
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
WS-474: REST calls and CLI for calibration ingestion
Calibration_Ingestion
into
main
Overview
0
Commits
3
Pipelines
4
Changes
16
Merged
Charlotte Hausman
requested to merge
Calibration_Ingestion
into
main
3 years ago
Overview
0
Commits
3
Pipelines
4
Changes
13
Expand
0
0
Merge request reports
Compare
version 1
version 2
4af90a05
3 years ago
version 1
331e21b2
3 years ago
main (base)
and
version 2
latest version
29b38614
3 commits,
3 years ago
version 2
4af90a05
2 commits,
3 years ago
version 1
331e21b2
1 commit,
3 years ago
Show latest version
13 files
+
540
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
Search (e.g. *.vue) (Ctrl+P)
apps/cli/executables/pexable/conveyor/test/test_conveyor.py
+
6
−
5
Options
@@ -5,8 +5,6 @@ import argparse
from
unittest.mock
import
patch
,
MagicMock
import
conveyor.conveyor
as
con
from
conveyor.deliver
import
DeliveryConveyor
from
conveyor.retrieve
import
RetrievalConveyor
expected_settings
=
{
"
qa_delivery_area
"
:
"
/lustre/aoc/cluster/pipeline/docker/workspaces/qa2
"
,
@@ -26,14 +24,17 @@ class TestConveyor:
settings
=
con
.
_get_settings
(
"
test/test.json
"
)
assert
settings
[
"
qa_delivery_area
"
]
==
expected_settings
[
"
qa_delivery_area
"
]
assert
settings
[
"
weblog_cache_area
"
]
==
expected_settings
[
"
weblog_cache_area
"
]
assert
settings
[
"
workspaces_lustre_root_dir
"
]
==
expected_settings
[
"
workspaces_lustre_root_dir
"
]
assert
(
settings
[
"
workspaces_lustre_root_dir
"
]
==
expected_settings
[
"
workspaces_lustre_root_dir
"
]
)
# mock calls to cwd and count
assert
cwd
.
call_count
==
2
assert
settings
[
"
destination_dir
"
]
==
expected_settings
[
"
destination_dir
"
]
assert
settings
[
"
destination_subdir
"
]
==
expected_settings
[
"
destination_subdir
"
]
def
test_main_deliver
(
self
):
args
.
deliver
=
[
'
test/test.json
'
]
args
.
deliver
=
[
"
test/test.json
"
]
with
patch
(
"
argparse.ArgumentParser.parse_args
"
,
MagicMock
(
return_value
=
args
))
as
mock_args
:
assert
args
.
deliver
[
0
]
==
"
test/test.json
"
@@ -45,7 +46,7 @@ class TestConveyor:
args
.
deliver
=
None
def
test_main_retrieve
(
self
):
args
.
retrieve
=
[
'
test/test.json
'
]
args
.
retrieve
=
[
"
test/test.json
"
]
with
patch
(
"
argparse.ArgumentParser.parse_args
"
,
MagicMock
(
return_value
=
args
))
as
mock_args
:
with
patch
(
"
conveyor.retrieve.RetrievalConveyor.convey
"
)
as
ret_convey
:
Loading