From cbf55e1ef91d164391a992b0427eda649257ed02 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 28 Nov 2018 22:19:07 +0100 Subject: [PATCH] Fix remaining private_api refactoring issues --- tests/helpers/stubs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/helpers/stubs.py b/tests/helpers/stubs.py index 6475e21d8..ed6fce36c 100644 --- a/tests/helpers/stubs.py +++ b/tests/helpers/stubs.py @@ -241,7 +241,7 @@ class FakeWebTabAudio(browsertab.AbstractAudio): return False -class FakeWebTabPrivate: +class FakeWebTabPrivate(browsertab.AbstractTabPrivate): def shutdown(self): pass @@ -255,7 +255,7 @@ class FakeWebTab(browsertab.AbstractTab): scroll_pos_perc=(0, 0), load_status=usertypes.LoadStatus.success, progress=0, can_go_back=None, can_go_forward=None): - super().__init__(win_id=0, mode_manager=None, private=False) + super().__init__(win_id=0, private=False) self._load_status = load_status self._title = title self._url = url @@ -264,7 +264,7 @@ class FakeWebTab(browsertab.AbstractTab): can_go_forward=can_go_forward) self.scroller = FakeWebTabScroller(self, scroll_pos_perc) self.audio = FakeWebTabAudio(self) - self.private_api = FakeWebTabPrivate() + self.private_api = FakeWebTabPrivate(tab=self, mode_manager=None) wrapped = QWidget() self._layout.wrap(self, wrapped)