Skip to content

Commit

Permalink
using pip instead of pipx and ran black .
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaglodha committed Jun 6, 2024
1 parent 3eb73d6 commit a830f06
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/geoserverx/models/data_store.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/geoserverx/utils/services/async_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ async def addFile(
layer_payload,
store_header,
layer_header,
):
...
): ...


class CreateFileStore:
Expand Down
3 changes: 1 addition & 2 deletions src/geoserverx/utils/services/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def addFile(
layer_payload,
store_header,
layer_header,
):
...
): ...


class CreateFileStore:
Expand Down
8 changes: 2 additions & 6 deletions tests/_async/test_gsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand All @@ -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)
)
Expand Down

0 comments on commit a830f06

Please sign in to comment.