From 9ef9a0fb1c19a653c946e4ae8ae95d76f0702ef2 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 4 Oct 2020 22:38:35 -0700 Subject: [PATCH] *: Minor flake8 fixes Signed-off-by: Sunil Mohan Adapa --- plinth/modules/calibre/tests/test_functional.py | 6 +++--- plinth/tests/functional/step_definitions.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plinth/modules/calibre/tests/test_functional.py b/plinth/modules/calibre/tests/test_functional.py index 9f7ca97e6..0b84b53e7 100644 --- a/plinth/modules/calibre/tests/test_functional.py +++ b/plinth/modules/calibre/tests/test_functional.py @@ -130,13 +130,13 @@ def _visit_library(browser, name): raise ValueError('Library not found') link.first.click() - functional.eventually(browser.find_by_css, [f'.book-list-cover-grid']) + functional.eventually(browser.find_by_css, ['.book-list-cover-grid']) def _add_book(browser, library_name, book_name): """Add a book to the library through Calibre interface.""" _visit_library(browser, library_name) - add_button = browser.find_by_css(f'a[data-button-icon="plus"]') + add_button = browser.find_by_css('a[data-button-icon="plus"]') add_button.first.click() functional.eventually(browser.find_by_xpath, @@ -163,7 +163,7 @@ def _delete_book(browser, library_name, book_name, ignore_missing=False): raise Exception('Book not found') book.first.click() - delete_button = browser.find_by_css(f'a[data-button-icon="trash"]') + delete_button = browser.find_by_css('a[data-button-icon="trash"]') delete_button.first.click() dialog = browser.find_by_id('modal-container').first diff --git a/plinth/tests/functional/step_definitions.py b/plinth/tests/functional/step_definitions.py index 76fc56984..848531139 100644 --- a/plinth/tests/functional/step_definitions.py +++ b/plinth/tests/functional/step_definitions.py @@ -55,7 +55,7 @@ def disable_application(session_browser, app_name): @given(parsers.parse('the {app_name:w} application can be disabled')) def app_can_be_disabled(session_browser, app_name): if not functional.app_can_be_disabled(session_browser, app_name): - pytest.skip(f'network time application can\'t be disabled') + pytest.skip('network time application can\'t be disabled') @then(parsers.parse('the {service_name:w} service should be running'))