Skip to content

Commit

Permalink
Fix root URL warning.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rillian authored and PonteIneptique committed Jul 5, 2019
1 parent e2d475c commit 2e87aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_query/test_interface.py
Expand Up @@ -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,
Expand Down

0 comments on commit 2e87aa2

Please sign in to comment.