[pytests/test_kernel] apply black -t py34
This commit is contained in:
parent
9cc26c8a95
commit
08240c2e82
1 changed files with 6 additions and 2 deletions
|
@ -3,18 +3,22 @@ import pytest
|
||||||
import core.config
|
import core.config
|
||||||
import modules.contrib.kernel
|
import modules.contrib.kernel
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def some_kernel():
|
def some_kernel():
|
||||||
return 'this-is-my-kernel'
|
return "this-is-my-kernel"
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def kernel_module():
|
def kernel_module():
|
||||||
return modules.contrib.kernel.Module(config=core.config.Config([]), theme=None)
|
return modules.contrib.kernel.Module(config=core.config.Config([]), theme=None)
|
||||||
|
|
||||||
|
|
||||||
def test_full_text(mocker, kernel_module):
|
def test_full_text(mocker, kernel_module):
|
||||||
platform = mocker.patch('modules.contrib.kernel.platform')
|
platform = mocker.patch("modules.contrib.kernel.platform")
|
||||||
platform.release.return_value = some_kernel
|
platform.release.return_value = some_kernel
|
||||||
assert len(kernel_module.widgets()) == 1
|
assert len(kernel_module.widgets()) == 1
|
||||||
assert some_kernel == kernel_module.widget().full_text()
|
assert some_kernel == kernel_module.widget().full_text()
|
||||||
|
|
||||||
|
|
||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue