mirror of
https://github.com/gsi-upm/senpy
synced 2025-09-18 04:22:21 +00:00
Version 1.0.2
Update RDFlib to 6.1.1 (removed rdflib-jsonld, as it is deprecated) Bumped minimum python version: 3.7 (as a result of RDFLIB 6) Added ProxyFix to run behind nginx (Added --no-proxy to run without the fix) Replaced http media links to protocol-agnostic links in playground Enable CORS (via --enable-cors) Update old urls (replaced *.cluster.gsi.dit.upm.es with *.gsi.upm.es)
This commit is contained in:
@@ -69,8 +69,9 @@ class ExtensionsTest(TestCase):
|
||||
|
||||
def test_adding_folder(self):
|
||||
""" It should be possible for senpy to look for plugins in more folders. """
|
||||
app = Flask('test_adding_folder')
|
||||
senpy = Senpy(plugin_folder=None,
|
||||
app=self.app,
|
||||
app=app,
|
||||
default_plugins=False)
|
||||
assert not senpy.analysis_plugins()
|
||||
senpy.add_folder(self.examples_dir)
|
||||
@@ -141,8 +142,9 @@ class ExtensionsTest(TestCase):
|
||||
|
||||
def test_analyse_empty(self):
|
||||
""" Trying to analyse when no plugins are installed should raise an error."""
|
||||
app = Flask('test_adding_folder')
|
||||
senpy = Senpy(plugin_folder=None,
|
||||
app=self.app,
|
||||
app=app,
|
||||
default_plugins=False)
|
||||
self.assertRaises(Error, senpy.analyse, Results(), [])
|
||||
|
||||
|
Reference in New Issue
Block a user