Fix unittests
jaraco.functools 1.6 is broken and is pulled in by the irc lib. Use an older version to avoid the brokenness. Use a real url in the fake connection url as this is checked for correctness when creating elasticsearch transport objects. Change-Id: I41b5868c0c055297bb9ead1ad96486afeed9cce5
This commit is contained in:
parent
c272ddfbaf
commit
4d8d102ffb
@ -124,7 +124,7 @@ class TestSearchEngine(tests.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSearchEngine, self).setUp()
|
||||
self.engine = results.SearchEngine('fake-url')
|
||||
self.engine = results.SearchEngine('http://fake-url')
|
||||
self.query = 'message:"foo" AND tags:"console"'
|
||||
|
||||
def test_search_not_recent(self, search_mock):
|
||||
|
@ -4,6 +4,10 @@ pytz
|
||||
pyelasticsearch<1.0
|
||||
gerritlib
|
||||
python-daemon<2.0 # BUg https://storyboard.openstack.org/#!/story/2000107
|
||||
# irc depends on jaraco modules. jaraco.functools 1.6 attempts to import
|
||||
# backports which do not exist. This appears to be a dependency issue
|
||||
# upstream. Avoid this by forcing the use of older jaraco.functools.
|
||||
jaraco.functools<1.6
|
||||
irc!=11.1
|
||||
pyyaml
|
||||
lockfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user