Skip to content

Commit 85f8d27

Browse files
committed
Uncomments out remaining failing tests
1 parent 5f26542 commit 85f8d27

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

flika/tests/test_macros.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
from .. import flika
55
import numpy as np
66

7-
# class TestPluginManager():
8-
# def setup_method(self, method):
9-
# flika.start_flika()
10-
# PluginManager.show()
7+
class TestPluginManager():
8+
def setup_method(self, method):
9+
flika.start_flika()
10+
PluginManager.show()
1111

12-
# def teardown_method(self, method):
13-
# PluginManager.close()
14-
15-
# def test_local_plugins(self):
16-
# local = set(plugin_list.keys())
17-
# plugins = set(PluginManager.plugins.keys())
18-
19-
# assert (local & plugins) == local, "Local plugin list not loaded correctly"
20-
21-
# def test_install_plugin(self):
22-
# plugin_name = 'Detect Puffs'
23-
# if PluginManager.plugins[plugin_name].installed:
24-
# return
25-
# PluginManager.refresh_online_plugins()
26-
# i = 0
27-
# while PluginManager.plugins[plugin_name].url == None:
28-
# i += 1
29-
# if i == 1000:
30-
# return
31-
# continue
32-
# PluginManager.downloadPlugin(plugin_name)
33-
# assert PluginManager.plugins[plugin_name].menu is not None and PluginManager.plugins[plugin_name].installed, "Plugin install"
34-
# PluginManager.removePlugin(plugin_name)
35-
# assert PluginManager.plugins[plugin_name].menu is None and not PluginManager.plugins[plugin_name].installed, "Plugin uninstall"
12+
def teardown_method(self, method):
13+
PluginManager.close()
14+
15+
def test_local_plugins(self):
16+
local = set(plugin_list.keys())
17+
plugins = set(PluginManager.plugins.keys())
18+
19+
assert (local & plugins) == local, "Local plugin list not loaded correctly"
20+
21+
def test_install_plugin(self):
22+
plugin_name = 'Detect Puffs'
23+
if PluginManager.plugins[plugin_name].installed:
24+
return
25+
PluginManager.refresh_online_plugins()
26+
i = 0
27+
while PluginManager.plugins[plugin_name].url == None:
28+
i += 1
29+
if i == 1000:
30+
return
31+
continue
32+
PluginManager.downloadPlugin(plugin_name)
33+
assert PluginManager.plugins[plugin_name].menu is not None and PluginManager.plugins[plugin_name].installed, "Plugin install"
34+
PluginManager.removePlugin(plugin_name)
35+
assert PluginManager.plugins[plugin_name].menu is None and not PluginManager.plugins[plugin_name].installed, "Plugin uninstall"
3636

3737

3838
class TestScriptEditor():

flika/tests/test_window.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,14 @@ class Test_Freehand_3D(ROI_Freehand):
567567
class Test_Freehand_4D(ROI_Freehand):
568568
img = STANDARD_4D_IMAGE
569569

570-
# class Test_Rect_Line_2D(ROI_Rect_Line):
571-
# img = STANDARD_2D_IMAGE
570+
class Test_Rect_Line_2D(ROI_Rect_Line):
571+
img = STANDARD_2D_IMAGE
572572

573-
# class Test_Rect_Line_3D(ROI_Rect_Line):
574-
# img = STANDARD_3D_IMAGE
573+
class Test_Rect_Line_3D(ROI_Rect_Line):
574+
img = STANDARD_3D_IMAGE
575575

576-
# class Test_Rect_Line_4D(ROI_Rect_Line):
577-
# img = STANDARD_4D_IMAGE
576+
class Test_Rect_Line_4D(ROI_Rect_Line):
577+
img = STANDARD_4D_IMAGE
578578

579579

580580
class TestTracefig:

0 commit comments

Comments
 (0)