Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ALMF
SVLT
Commits
7928026e
Commit
7928026e
authored
5 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Option to copy file from test server's get_accessor method
parent
4d28155b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model_server/conf/testing.py
+4
-3
4 additions, 3 deletions
model_server/conf/testing.py
with
4 additions
and
3 deletions
model_server/conf/testing.py
+
4
−
3
View file @
7928026e
...
...
@@ -131,11 +131,12 @@ class TestServerBaseClass(unittest.TestCase):
)
return
self
.
input_data
[
'
name
'
]
def
get_accessor
(
self
,
accessor_id
,
filename
=
None
):
def
get_accessor
(
self
,
accessor_id
,
filename
=
None
,
copy_to
=
None
):
r
=
self
.
assertPutSuccess
(
f
'
/accessors/write_to_file/
{
accessor_id
}
'
,
query
=
{
'
filename
'
:
filename
})
where_out
=
self
.
assertGetSuccess
(
'
paths
'
)[
'
outbound_images
'
]
fp_out
=
(
Path
(
where_out
)
/
r
)
fp_out
=
Path
(
self
.
assertGetSuccess
(
'
paths
'
)[
'
outbound_images
'
])
/
r
self
.
assertTrue
(
fp_out
.
exists
())
if
copy_to
:
copyfile
(
fp_out
,
Path
(
copy_to
)
/
f
'
normal_
{
fp_out
.
name
}
'
)
return
generate_file_accessor
(
fp_out
)
...
...
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