Final cooikies tests
This commit is contained in:
parent
d36c701b07
commit
6541a360b1
@ -157,6 +157,17 @@ def test_cookies_changed_emit(config_stub, fake_save_manager,
|
|||||||
config_stub.set('content', 'cookies-store', False)
|
config_stub.set('content', 'cookies-store', False)
|
||||||
|
|
||||||
|
|
||||||
|
def test_cookies_changed_not_emitted(config_stub, fake_save_manager,
|
||||||
|
monkeypatch):
|
||||||
|
"""Test that changed is not emitted when nothing changes."""
|
||||||
|
config_stub.data = CONFIG_COOKIES_ENABLED
|
||||||
|
monkeypatch.setattr(lineparser,
|
||||||
|
'LineParser', LineparserSaveStub)
|
||||||
|
jar = cookies.CookieJar()
|
||||||
|
changed_spy = QSignalSpy(jar.changed)
|
||||||
|
assert len(changed_spy) == 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('store_cookies,empty', [
|
@pytest.mark.parametrize('store_cookies,empty', [
|
||||||
(True, False),
|
(True, False),
|
||||||
(False, True)
|
(False, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user