| 
67 | 67 | class TestVisualizationsRegistry(VisualizationsBase_TestCase):  | 
68 | 68 |     def test_plugin_load_from_repo(self):  | 
69 | 69 |         """should attempt load if criteria met"""  | 
70 |  | -        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=glx_dir))  | 
 | 70 | +        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=mock_app_dir.root_path))  | 
71 | 71 |         plugin_mgr = VisualizationsRegistry(mock_app, directories_setting=vis_reg_path)  | 
72 | 72 | 
 
  | 
73 | 73 |         expected_plugins_path = os.path.join(glx_dir, vis_reg_path)  | 
@@ -103,8 +103,8 @@ def test_plugin_load(self):  | 
103 | 103 |                 }  | 
104 | 104 |             }  | 
105 | 105 |         )  | 
106 |  | -        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=glx_dir))  | 
107 |  | -        plugin_mgr = VisualizationsRegistry(mock_app, directories_setting=vis_reg_path)  | 
 | 106 | +        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=mock_app_dir.root_path))  | 
 | 107 | +        plugin_mgr = VisualizationsRegistry(mock_app, directories_setting="plugins")  | 
108 | 108 | 
 
  | 
109 | 109 |         expected_plugins_path = os.path.join(mock_app_dir.root_path, "plugins")  | 
110 | 110 |         expected_plugin_names = ["vis1", "vis2"]  | 
@@ -155,8 +155,8 @@ def test_script_entry(self):  | 
155 | 155 |                 }  | 
156 | 156 |             }  | 
157 | 157 |         )  | 
158 |  | -        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=glx_dir))  | 
159 |  | -        plugin_mgr = VisualizationsRegistry(mock_app, directories_setting=vis_reg_path)  | 
 | 158 | +        mock_app = cast("StructuredApp", galaxy_mock.MockApp(root=mock_app_dir.root_path))  | 
 | 159 | +        plugin_mgr = VisualizationsRegistry(mock_app, directories_setting="plugins")  | 
160 | 160 |         script_entry = plugin_mgr.plugins["jstest"]  | 
161 | 161 | 
 
  | 
162 | 162 |         assert isinstance(script_entry, plugin.VisualizationPlugin)  | 
 | 
0 commit comments