1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 10:02:21 +00:00

Added plugins by default and monkey patching

Fixes #2
This commit is contained in:
J. Fernando Sánchez
2015-06-18 17:52:02 +02:00
parent 384aba4654
commit 7c2e0ddec7
12 changed files with 2765 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ class ExtensionsTest(TestCase):
def create_app(self):
self.app = Flask("test_extensions")
self.dir = os.path.join(os.path.dirname(__file__), "..")
self.senpy = Senpy(plugin_folder=self.dir)
self.senpy = Senpy(plugin_folder=self.dir, base_plugins=False)
self.senpy.init_app(self.app)
self.senpy.activate_plugin("Dummy", sync=True)
return self.app
@@ -75,7 +75,7 @@ class ExtensionsTest(TestCase):
resp = self.senpy.analyse(input="tupni")
logging.debug("Response: {}".format(resp))
assert resp["status"] == 404
def test_filtering(self):
""" Filtering plugins """