From 3fbc93c99838adfb5e058ef9e60d5c4f7ea1d6d5 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 12 Oct 2023 02:09:13 +0400 Subject: [PATCH] tests: fix rename --- selfprivacy_api/jobs/nix_collect_garbage.py | 2 +- tests/test_graphql/test_nix_collect_garbage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfprivacy_api/jobs/nix_collect_garbage.py b/selfprivacy_api/jobs/nix_collect_garbage.py index cd6dfed..18f2e6b 100644 --- a/selfprivacy_api/jobs/nix_collect_garbage.py +++ b/selfprivacy_api/jobs/nix_collect_garbage.py @@ -100,7 +100,7 @@ def calculate_and_clear_dead_packages(job: Job): status_text="Calculate the number of dead packages...", ) - dead_packages, package_equal_to_percent = get_dead_packages(stream_process + dead_packages, package_equal_to_percent = get_dead_packages( run_nix_store_print_dead() ) diff --git a/tests/test_graphql/test_nix_collect_garbage.py b/tests/test_graphql/test_nix_collect_garbage.py index 340292f..a23f7ea 100644 --- a/tests/test_graphql/test_nix_collect_garbage.py +++ b/tests/test_graphql/test_nix_collect_garbage.py @@ -14,7 +14,7 @@ from selfprivacy_api.jobs.nix_collect_garbage import ( parse_line, CLEAR_COMPLETED, COMPLETED_WITH_ERROR, - stream_process, + process_stream, RESULT_WAS_NOT_FOUND_ERROR, )