From a830f0615fbbc2ba55315787b3dc33e28588d340 Mon Sep 17 00:00:00 2001 From: krishnaglodha Date: Thu, 6 Jun 2024 13:18:38 +0530 Subject: [PATCH] using pip instead of pipx and ran black . --- .github/workflows/test.yml | 2 +- src/geoserverx/models/data_store.py | 2 +- src/geoserverx/utils/services/async_datastore.py | 3 +-- src/geoserverx/utils/services/datastore.py | 3 +-- tests/_async/test_gsx.py | 8 ++------ 5 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34be612..0f5f2dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: print(f"VIRTUALENV_PIP={pip.__version__}", file=io) - name: Install Poetry run: | - pipx install poetry + pip install poetry poetry --version - name: Install dependencies run: poetry install diff --git a/src/geoserverx/models/data_store.py b/src/geoserverx/models/data_store.py index 42088c8..23d9797 100644 --- a/src/geoserverx/models/data_store.py +++ b/src/geoserverx/models/data_store.py @@ -1,5 +1,5 @@ from typing import List, Literal, Optional, Union -from pydantic import BaseModel, Field,ConfigDict +from pydantic import BaseModel, Field, ConfigDict from .workspace import WorkspaceInBulk diff --git a/src/geoserverx/utils/services/async_datastore.py b/src/geoserverx/utils/services/async_datastore.py index dd05c76..27c5070 100644 --- a/src/geoserverx/utils/services/async_datastore.py +++ b/src/geoserverx/utils/services/async_datastore.py @@ -19,8 +19,7 @@ async def addFile( layer_payload, store_header, layer_header, - ): - ... + ): ... class CreateFileStore: diff --git a/src/geoserverx/utils/services/datastore.py b/src/geoserverx/utils/services/datastore.py index fe0f7e0..ba167a7 100644 --- a/src/geoserverx/utils/services/datastore.py +++ b/src/geoserverx/utils/services/datastore.py @@ -20,8 +20,7 @@ def addFile( layer_payload, store_header, layer_header, - ): - ... + ): ... class CreateFileStore: diff --git a/tests/_async/test_gsx.py b/tests/_async/test_gsx.py index 77c25ac..5410d64 100644 --- a/tests/_async/test_gsx.py +++ b/tests/_async/test_gsx.py @@ -410,9 +410,7 @@ async def test_get_all_layers_NetworkError(create_a_client, respx_mock): # Test - get_layer @pytest_mark.anyio -async def test_get_layer_validation( - create_a_client, bad_layer_connection, respx_mock -): +async def test_get_layer_validation(create_a_client, bad_layer_connection, respx_mock): respx_mock.get(f"{baseUrl}layers/tiger:poi").mock( return_value=httpx.Response(404, json=bad_layer_connection) ) @@ -421,9 +419,7 @@ async def test_get_layer_validation( @pytest_mark.anyio -async def test_get_layer_success( - create_a_client, good_layer_connection, respx_mock -): +async def test_get_layer_success(create_a_client, good_layer_connection, respx_mock): respx_mock.get(f"{baseUrl}layers/tiger:poi").mock( return_value=httpx.Response(200, json=good_layer_connection) )