Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
model_server
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
Christopher Randolph Rhodes
model_server
Commits
4b058a3c
Commit
4b058a3c
authored
1 year ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Removed manifest JSON from session
parent
4f57da1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!16
Completed (de)serialization of RoiSet
,
!9
Session exposes a python log
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_session.py
+0
-14
0 additions, 14 deletions
tests/test_session.py
with
0 additions
and
14 deletions
tests/test_session.py
+
0
−
14
View file @
4b058a3c
...
@@ -25,7 +25,6 @@ class TestGetSessionObject(unittest.TestCase):
...
@@ -25,7 +25,6 @@ class TestGetSessionObject(unittest.TestCase):
def
test_session_logfile_is_valid
(
self
):
def
test_session_logfile_is_valid
(
self
):
self
.
assertTrue
(
exists
(
self
.
sesh
.
logfile
),
'
Session did not create a log file in the correct place
'
)
self
.
assertTrue
(
exists
(
self
.
sesh
.
logfile
),
'
Session did not create a log file in the correct place
'
)
self
.
assertTrue
(
exists
(
self
.
sesh
.
manifest_json
),
'
Session did not create a manifest JSON file in the correct place
'
)
def
test_changing_session_root_creates_new_directory
(
self
):
def
test_changing_session_root_creates_new_directory
(
self
):
from
model_server.conf.defaults
import
root
from
model_server.conf.defaults
import
root
...
@@ -74,19 +73,6 @@ class TestGetSessionObject(unittest.TestCase):
...
@@ -74,19 +73,6 @@ class TestGetSessionObject(unittest.TestCase):
self
.
assertEqual
(
logs
[
1
][
'
level
'
],
'
WARNING
'
)
self
.
assertEqual
(
logs
[
1
][
'
level
'
],
'
WARNING
'
)
self
.
assertEqual
(
logs
[
-
1
][
'
message
'
],
'
Initialized session
'
)
self
.
assertEqual
(
logs
[
-
1
][
'
message
'
],
'
Initialized session
'
)
def
test_session_records_workflow
(
self
):
di
=
WorkflowRunRecord
(
model_id
=
'
test_model
'
,
input_filepath
=
'
/test/input/directory
'
,
output_filepath
=
'
/test/output/fi.le
'
,
success
=
True
,
timer_results
=
{
'
start
'
:
0.123
},
)
self
.
sesh
.
record_workflow_run
(
di
)
with
open
(
self
.
sesh
.
manifest_json
,
'
r
'
)
as
fh
:
do
=
json
.
load
(
fh
)
self
.
assertEqual
(
di
.
dict
(),
do
,
'
Manifest record is not correct
'
)
def
test_session_loads_model
(
self
):
def
test_session_loads_model
(
self
):
MC
=
DummySemanticSegmentationModel
MC
=
DummySemanticSegmentationModel
success
=
self
.
sesh
.
load_model
(
MC
)
success
=
self
.
sesh
.
load_model
(
MC
)
...
...
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