Skip to content
Snippets Groups Projects
Commit 4b058a3c authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Removed manifest JSON from session

parent 4f57da1d
No related branches found
No related tags found
2 merge requests!16Completed (de)serialization of RoiSet,!9Session exposes a python log
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment