Refactor session

This commit is contained in:
Andrew Kay
2021-06-14 21:08:52 -05:00
parent bdb0866db1
commit f31157cf8b
7 changed files with 355 additions and 197 deletions

View File

@@ -224,6 +224,7 @@ class UpdateSessionTestCase(unittest.TestCase):
# Assert
self.controller.session.handle_host.assert_not_called()
self.controller.session.render.assert_not_called()
self.controller.session_selector.select.assert_not_called()
@@ -236,6 +237,7 @@ class UpdateSessionTestCase(unittest.TestCase):
# Assert
self.controller.session.handle_host.assert_not_called()
self.controller.session.render.assert_not_called()
self.controller.session_selector.select.assert_called_once()
@@ -252,6 +254,7 @@ class UpdateSessionTestCase(unittest.TestCase):
# Assert
self.controller.session.handle_host.assert_called_once()
self.controller.session.render.assert_called_once()
self.assertEqual(self.controller.session_selector.select.call_count, 2)