From 469b124f48692797e531765999a47ef00f3b6d7c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 02:52:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../tests/user_journeys/test_user_journeys.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/conda-store-server/tests/user_journeys/test_user_journeys.py b/conda-store-server/tests/user_journeys/test_user_journeys.py index cc748db70..2d3f401dd 100644 --- a/conda-store-server/tests/user_journeys/test_user_journeys.py +++ b/conda-store-server/tests/user_journeys/test_user_journeys.py @@ -105,9 +105,7 @@ def test_user_login_and_create_shared_environment( @pytest.mark.user_journey def test_admin_delete_environment(base_url: str): """Test that an admin can delete environments.""" - specs = [ - "tests/user_journeys/test_data/simple_environment.yaml" - ] + specs = ["tests/user_journeys/test_data/simple_environment.yaml"] api = utils.API(base_url=base_url) # Create a shared namespace; default permissions for namepace/environment @@ -117,9 +115,9 @@ def test_admin_delete_environment(base_url: str): envs = [] for spec in specs: envs.append( - api.create_environment( - namespace, spec - ).json()["data"]["specification"]["name"] + api.create_environment(namespace, spec).json()["data"]["specification"][ + "name" + ] ) assert len(api.list_environments(namespace).json()["data"]) == len(specs)