From f6575d967053a3bbc90c42a9313ee74b5ccf5903 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:05:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_extractor.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test_extractor.py b/tests/test_extractor.py index db66da1f..b822e8bc 100644 --- a/tests/test_extractor.py +++ b/tests/test_extractor.py @@ -17,9 +17,13 @@ def test_basinmaker_extractor(get_local_testdata, tmp_path): rvh_config = rvh_extractor.extract(hru_from_sb=True) # Create lists of values to check - bedslope_list = [item['bed_slope'] for item in rvh_config["channel_profile"]] - mannings_list = [value for d in rvh_config["channel_profile"] for value in [t[1] for t in d['roughness_zones']]] - reach_length_list = [item['reach_length'] for item in rvh_config["sub_basins"]] + bedslope_list = [item["bed_slope"] for item in rvh_config["channel_profile"]] + mannings_list = [ + value + for d in rvh_config["channel_profile"] + for value in [t[1] for t in d["roughness_zones"]] + ] + reach_length_list = [item["reach_length"] for item in rvh_config["sub_basins"]] rvh_config.pop("channel_profile")