From 2e87aa26a0444843f9814207031c4756a03097e9 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Thu, 4 Jul 2019 14:36:17 -0700 Subject: [PATCH] Fix root URL warning. Nemo warns about (and corrects) an explicit base_url="/" parameter, requiring an empty string instead. However, all TestSimpleQuery tests pass this as part of their instance config, cluttering the output with warnings. This is especially obvious with the pytest wrapper. Avoid the warning by passing the indicated base_url="" instead. --- tests/test_query/test_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_query/test_interface.py b/tests/test_query/test_interface.py index f6a8a36..6dfda5d 100644 --- a/tests/test_query/test_interface.py +++ b/tests/test_query/test_interface.py @@ -55,7 +55,7 @@ def setUp(self): logger = logging.getLogger('my-logger') logger.propagate = False self.nautilus = CtsCapitainsLocalResolver(["tests/test_data/interface/latinLit"], logger=logger) - self.nemo = Nemo(app=self.app, resolver=self.nautilus, base_url="/") + self.nemo = Nemo(app=self.app, resolver=self.nautilus, base_url="") self.query = SimpleQuery( [ self.one,