Skip to content
Snippets Groups Projects
Commit b2bb11cb authored by payno's avatar payno
Browse files

[unit test] add compatibilty for config.widgets_entry_points

parent ccb05a15
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,10 @@ class OrangeWorflowTest(TestCase):
)
cache_filename = os.path.join(cache_dir(), "widget-registry.pck")
widget_discovery.run(config.widgets_entry_points(False))
try:
widget_discovery.run(config.widgets_entry_points(False))
except:
widget_discovery.run(config.widgets_entry_points())
# Store cached descriptions
cache.save_registry_cache(widget_discovery.cached_descriptions)
with open(cache_filename, "wb") as f:
......
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