Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the allpip group with 2 updates #142

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 59 additions & 59 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.112.0"
fastapi = "^0.112.1"
alembic = "^1.13.2"
pydantic = "^2.8.2"
jinja2 = "^3.1.4"
Expand All @@ -48,7 +48,7 @@ pytest-playwright = "^0.5.1"
pytest-httpx = "^0.30.0"

[tool.poetry.group.dev.dependencies]
ruff = "^0.5.6"
ruff = "^0.6.1"
pre-commit = "^3.8.0"
pyright = "^1.1.374"
liccheck = "^0.9.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/api/routes/test_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from tests.constants import default_instrument


@pytest.fixture()
@pytest.fixture
def init_instruments() -> Generator[None, None, None]: # noqa: PT004
origin = InstrumentsService.fetch_instruments
InstrumentsService.fetch_instruments = Mock(
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/test_check_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from yaml import YAMLError


@pytest.fixture()
@pytest.fixture
def system_card_data() -> dict[str, Any]:
return {
"name": "test-system-card",
Expand All @@ -40,7 +40,7 @@ def system_card_data() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def system_card(system_card_data: dict[str, Any]) -> SystemCard:
system_card = SystemCard(**system_card_data)
return system_card
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def pytest_collection_modifyitems(session: pytest.Session, config: pytest.Config
items[:] = tests + e2e_tests


@pytest.fixture()
@pytest.fixture
def client(db: DatabaseTestUtils, monkeypatch: pytest.MonkeyPatch) -> Generator[TestClient, None, None]:
# overwrite db url
monkeypatch.setenv("APP_DATABASE_FILE", "/" + str(db.get_database_file()))
Expand Down Expand Up @@ -165,7 +165,7 @@ def generate_db_name(request: pytest.FixtureRequest) -> str:
return sanitized_name


@pytest.fixture()
@pytest.fixture
def db(
tmp_path: Path, request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch
) -> Generator[DatabaseTestUtils, None, None]:
Expand All @@ -184,7 +184,7 @@ def db(
yield DatabaseTestUtils(session, database_file)


@pytest.fixture()
@pytest.fixture
def mock_csrf() -> Generator[None, None, None]: # noqa: PT004
original = CsrfProtect.validate_csrf
CsrfProtect.validate_csrf = AsyncMock()
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_change_lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from playwright.sync_api import Cookie, Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_change_language(page: Page):
def get_lang_cookie(page: Page) -> Cookie | None:
for cookie in page.context.cookies():
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/test_create_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from playwright.sync_api import Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_create_project(page: Page):
page.goto("/projects/new")

Expand All @@ -20,7 +20,7 @@ def test_e2e_create_project(page: Page):
expect(page.get_by_role("heading", name="My new project")).to_be_visible()


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_create_project_invalid(page: Page):
page.goto("/projects/new")

Expand All @@ -30,7 +30,7 @@ def test_e2e_create_project_invalid(page: Page):
expect(page.get_by_role("heading", name="Request Validation Error")).to_be_visible()


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_create_project_with_tasks(page: Page):
page.goto("/projects/new")

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_move_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from playwright.sync_api import Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_move_task_to_column(page: Page) -> None:
"""
Test moving a task in the browser to another column and verify that after a reload
Expand Down Expand Up @@ -33,7 +33,7 @@ def test_e2e_move_task_to_column(page: Page) -> None:
page.drag_and_drop("#card-container-1", "#column-1", target_position={"x": 50, "y": 50})


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_move_task_order_in_same_column(page: Page) -> None:
"""
Test moving a task in the page below another task and verify that after a reload
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_scroll_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from playwright.sync_api import Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_scroll_projects(page: Page) -> None:
page.goto("/projects/")

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_search_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from playwright.sync_api import Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_search_projects(page: Page) -> None:
page.goto("/projects/")

Expand All @@ -20,7 +20,7 @@ def test_e2e_search_projects(page: Page) -> None:
assert response.status == 200


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_search_scroll_projects(page: Page) -> None:
page.goto("/projects/")

Expand Down
2 changes: 1 addition & 1 deletion tests/regression/e2e/test_duplicate_task_bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from playwright.sync_api import Page, expect


@pytest.mark.slow()
@pytest.mark.slow
def test_e2e_duplicate_task(page: Page) -> None:
"""
When a task is dragged while being updated, an error occurred in the browser
Expand Down
2 changes: 1 addition & 1 deletion tests/schema/test_schema_system_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from amt.schema.system_card import SystemCard


@pytest.fixture()
@pytest.fixture
def setup() -> SystemCard:
system_card = SystemCard()
return system_card
Expand Down
2 changes: 1 addition & 1 deletion tests/services/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from yaml import safe_load


@pytest.fixture()
@pytest.fixture
def setup_and_teardown(tmp_path: Path) -> tuple[str, Path]:
filename = "test.yaml"
return filename, tmp_path.absolute()
Expand Down