tests: Get rid of TestTabData
Since we don't use __slots__ anymore, no need for those tests.
This commit is contained in:
parent
b1227391c5
commit
e50f5ad55c
@ -129,19 +129,3 @@ class TestJs:
|
|||||||
('undefined', None)])
|
('undefined', None)])
|
||||||
def test_blocking(self, tab, inp, expected):
|
def test_blocking(self, tab, inp, expected):
|
||||||
assert tab.run_js_blocking(inp) == expected
|
assert tab.run_js_blocking(inp) == expected
|
||||||
|
|
||||||
|
|
||||||
class TestTabData:
|
|
||||||
|
|
||||||
def test_known_attr(self):
|
|
||||||
data = browsertab.TabData()
|
|
||||||
assert not data.keep_icon
|
|
||||||
data.keep_icon = True
|
|
||||||
assert data.keep_icon
|
|
||||||
|
|
||||||
def test_unknown_attr(self):
|
|
||||||
data = browsertab.TabData()
|
|
||||||
with pytest.raises(AttributeError):
|
|
||||||
data.bar = 42 # pylint: disable=assigning-non-slot
|
|
||||||
with pytest.raises(AttributeError):
|
|
||||||
data.bar # pylint: disable=pointless-statement
|
|
||||||
|
Loading…
Reference in New Issue
Block a user