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

explicit test to confirm that session paths can accept string and convert to Path

parent 15245cb2
No related branches found
No related tags found
No related merge requests found
......@@ -100,3 +100,11 @@ class TestGetSessionObject(unittest.TestCase):
self.assertEqual(len(find_kv), 1)
self.assertEqual(find_kv[mid]['params'], p1)
def test_change_output_path(self):
import pathlib
sesh = Session()
pa = sesh.get_paths()['inbound_images']
self.assertIsInstance(pa, pathlib.Path)
sesh.set_data_directory('outbound_images', pa.__str__())
self.assertEqual(sesh.paths['inbound_images'], sesh.paths['outbound_images'])
self.assertIsInstance(sesh.paths['outbound_images'], pathlib.Path)
\ No newline at end of file
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