From 978d6c6c95f31d84669486f9ea79b162bacf3840 Mon Sep 17 00:00:00 2001 From: Tyler Durkota Date: Mon, 4 Dec 2023 09:43:15 -0800 Subject: [PATCH] Reformat file (lint fix) --- tests/actions/test_scan_action.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/actions/test_scan_action.py b/tests/actions/test_scan_action.py index f09eb125..37234f63 100644 --- a/tests/actions/test_scan_action.py +++ b/tests/actions/test_scan_action.py @@ -60,12 +60,14 @@ def mock_updater() -> MagicMock: @pytest.fixture() def mock_get_time_near_epoch(mocker: MockerFixture) -> MagicMock: - return mocker.patch("secureli.actions.scan.time", return_value=1.0) # 1 second after epoch + return mocker.patch( + "secureli.actions.scan.time", return_value=1.0 + ) # 1 second after epoch @pytest.fixture() def mock_get_time_far_from_epoch(mocker: MockerFixture) -> MagicMock: - return mocker.patch("secureli.actions.scan.time", return_value=1E6) + return mocker.patch("secureli.actions.scan.time", return_value=1e6) @pytest.fixture() @@ -276,4 +278,4 @@ def test_that_scan_update_check_updates_last_check_time( mock_secureli_config.verify.return_value = VerifyConfigOutcome.UP_TO_DATE scan_action.scan_repo(test_folder_path, ScanMode.STAGED_ONLY, always_yes=True) mock_secureli_config.save.assert_called_once() - assert mock_secureli_config.save.call_args.args[0].last_hook_update_check == 1E6 + assert mock_secureli_config.save.call_args.args[0].last_hook_update_check == 1e6