mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
Update tests to support parameter on _get_capacity()
This commit is contained in:
parent
18f4fdaa70
commit
c4fb09a418
@ -386,7 +386,7 @@ class TestCommon(TestCase):
|
|||||||
def test_battery(self):
|
def test_battery(self):
|
||||||
pl = Pl()
|
pl = Pl()
|
||||||
|
|
||||||
def _get_capacity():
|
def _get_capacity(pl):
|
||||||
return 86
|
return 86
|
||||||
|
|
||||||
with replace_attr(common, '_get_capacity', _get_capacity):
|
with replace_attr(common, '_get_capacity', _get_capacity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user