Initialize SQL for two failing tests.

test_selectors and test_get_all_objects were running fine on my machine, but
for some reason is failing with "Driver not loaded" on Travis. Let's try
initializing SQL and see what happens.
This commit is contained in:
Ryan Roden-Corrent 2017-02-16 07:39:50 -05:00
parent be07107b1c
commit 490250f5be
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ class TestSelectorsAndFilters:
assert self.TESTS
@pytest.mark.parametrize('group, val, matching', TESTS)
def test_selectors(self, webframe, group, val, matching):
def test_selectors(self, webframe, init_sql, group, val, matching):
webframe.setHtml('<html><body>{}</body></html>'.format(val))
# Make sure setting HTML succeeded and there's a new element
assert len(webframe.findAllElements('*')) == 3

View File

@ -244,7 +244,7 @@ class TestGetAllObjects:
def __repr__(self):
return '<{}>'.format(self._name)
def test_get_all_objects(self, stubs, monkeypatch):
def test_get_all_objects(self, stubs, monkeypatch, init_sql):
# pylint: disable=unused-variable
widgets = [self.Object('Widget 1'), self.Object('Widget 2')]
app = stubs.FakeQApplication(all_widgets=widgets)