Coding style.
- Linting.
This commit is contained in:
parent
b2e6ab2c3e
commit
4a2f99d795
16 changed files with 55 additions and 64 deletions
|
|
@ -53,8 +53,8 @@ class ScreenWidgetTestCase(unittest.TestCase):
|
|||
appearance_changed_event = asyncio.Event()
|
||||
summary = __main__.Summary(self.temp_dir, jobs_added_event)
|
||||
log = __main__.Log(appearance_changed_event)
|
||||
self.main_widget = __main__.Screen(summary, log, appearance_changed_event,
|
||||
_MockMainLoop())
|
||||
self.main_widget = __main__.Screen(
|
||||
summary, log, appearance_changed_event, _MockMainLoop())
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.temp_dir)
|
||||
|
|
@ -173,7 +173,7 @@ class SummarySyncWithFilesystem(unittest.TestCase):
|
|||
# self.assertFalse(self.jobs_added_event.is_set())
|
||||
|
||||
def test_sync_linked_files(self):
|
||||
"""Symbolic and hard-linked files are given distinct entry objects"""
|
||||
"""Symbolic and hard-linked files are given distinct entry objects."""
|
||||
baz_path = os.path.join(self.temp_dir, "baz")
|
||||
os.symlink(self.foo_path, baz_path)
|
||||
os.link(self.foo_path, self.zoo_path)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
import unittest
|
||||
|
||||
import eris.fill3 as fill3
|
||||
import eris.termstr as termstr
|
||||
|
||||
|
||||
class WidgetTests(unittest.TestCase):
|
||||
|
|
@ -78,7 +77,7 @@ class WidgetTests(unittest.TestCase):
|
|||
def assert_string2(self, appearance, expected_string):
|
||||
self.assertEqual(
|
||||
("\n".join(line.data for line in appearance),
|
||||
"".join("i" if style.fg_color==
|
||||
"".join("i" if style.fg_color ==
|
||||
fill3.ScrollBar.DEFAULT_BACKGROUND_COLOR else " "
|
||||
for line in appearance for style in line.style)),
|
||||
expected_string)
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ class PagedListTestCase(unittest.TestCase):
|
|||
def test_getitem(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5, 6], temp_dir, 4, 2)
|
||||
self.assertEqual(list_[1], 4)
|
||||
self.assertEqual(list_[1], 4)
|
||||
self.assertEqual(list_[1:3], [4, 5])
|
||||
self.assertEqual(list_[0:4], [3, 4, 5, 6])
|
||||
self.assertEqual(list_[0:4], [3, 4, 5, 6])
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
list_ = paged_list.PagedList([3, 4, 5, 6], temp_dir, 2, 2)
|
||||
self.assertEqual(list_[1:3], [4, 5])
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class ToolsTestCase(unittest.TestCase):
|
|||
self._test_tool(tools.perl_syntax,
|
||||
[("perl.pl", tools.Status.ok),
|
||||
# ("perl6.pl", tools.Status.problem)
|
||||
])
|
||||
])
|
||||
|
||||
def test_perldoc(self):
|
||||
# FIX: This is failing in an Appimage, inside a nspawn container,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue