diff --git a/tests/test_tyora.py b/tests/test_tyora.py index cd5f527..8bf2982 100644 --- a/tests/test_tyora.py +++ b/tests/test_tyora.py @@ -25,10 +25,7 @@ class TestFindLink: valid_return = {"href": "somelink", "text": "sometext"} def test_find_link_success(self) -> None: - assert ( - tyora.find_link(self.valid_html, self.valid_xpath) - == self.valid_return - ) + assert tyora.find_link(self.valid_html, self.valid_xpath) == self.valid_return def test_find_link_bad_xpath(self) -> None: assert tyora.find_link(self.valid_html, self.invalid_xpath) == {} @@ -84,17 +81,13 @@ def test_login_failed(mock_session: tyora.Session) -> None: # TODO: functions that use user input or read or write files -def test_create_config() -> None: - ... +def test_create_config() -> None: ... -def test_write_config() -> None: - ... +def test_write_config() -> None: ... -def test_read_config() -> None: - ... +def test_read_config() -> None: ... -def test_get_cookiejar() -> None: - ... +def test_get_cookiejar() -> None: ... diff --git a/tyora.py b/tyora.py index 451be63..c82ab2d 100644 --- a/tyora.py +++ b/tyora.py @@ -287,9 +287,11 @@ def parse_task_list(html: AnyStr) -> list[Task]: task = Task( id=item_id, name=item_name, - state=TaskState.COMPLETE - if "full" in item_class - else TaskState.INCOMPLETE, + state=( + TaskState.COMPLETE + if "full" in item_class + else TaskState.INCOMPLETE + ), ) task_list.append(task)