Example #1
0
 def test_call_viz_without_project_path(self, patched_create_session):
     server._call_viz()
     patched_create_session.assert_called_once_with(
         package_name="test",
         project_path=Path.cwd(),
         env=None,
         save_on_close=False,
     )
Example #2
0
 def test_call_viz_with_project_path(self, patched_create_session):
     mocked_project_path = Path("/tmp")
     server._call_viz(project_path=mocked_project_path)
     patched_create_session.assert_called_once_with(
         package_name="test",
         project_path=mocked_project_path,
         env=None,
         save_on_close=False,
     )
Example #3
0
 def test_call_viz_with_project_path(self, patched_get_project_context):
     mocked_project_path = Path("/tmp")
     server._call_viz(project_path=mocked_project_path)
     patched_get_project_context.assert_called_once_with(
         "context", project_path=mocked_project_path, env=None)
Example #4
0
 def test_call_viz_without_project_path(self, patched_get_project_context):
     server._call_viz()
     patched_get_project_context.assert_called_once_with("context",
                                                         env=None)