Skip to content

Commit

Permalink
chore(deps): update dependency ruff to ^0.6.0 (#2387)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency ruff to ^0.6.0

* fix lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Ebenrode <[email protected]>
  • Loading branch information
renovate[bot] and AlexEbenrode authored Oct 1, 2024
1 parent 7656849 commit 1949999
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pytest-xdist = "^3.3.1"
requests-mock = "^1.11.0"
respx = "^0.21.0"
rope = "^1.10.0"
ruff = "^0.5.0"
ruff = "^0.6.0"
toml-sort = "^0.23.1"
types-babel = "^2.11.0.15"
types-bleach = "^6.0.0.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_amocrm_is_updated(order, update_amocrm_order, update_amocrm_user):
update_amocrm_user.assert_called_once()


@pytest.mark.user_tags_rebuild()
@pytest.mark.user_tags_rebuild
def test_tags_are_rebuilt(order):
assert "any-purchase" not in order.user.tags

Expand All @@ -52,14 +52,14 @@ def test_tags_are_rebuilt(order):
assert "any-purchase" in order.user.tags


@pytest.mark.dashamail()
@pytest.mark.dashamail
def test_dashamail_is_updated(order, update_dashamail):
order.set_paid()

update_dashamail.assert_called_once()


@pytest.mark.dashamail()
@pytest.mark.dashamail
def test_dashamail_directm_is_updated(order, update_dashamail_directcrm):
order.set_paid()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def order(factory):
return factory.order()


@pytest.mark.freeze_time()
@pytest.mark.freeze_time
@pytest.mark.usefixtures("_set_current_user")
def test_paid_log_created(order, user):
order.set_paid()
Expand Down
10 changes: 5 additions & 5 deletions src/apps/orders/tests/orders/services/tests_order_refunder.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_update_user_tags(paid_order, mock_rebuild_tags, refund):
mock_rebuild_tags.assert_called_once_with(student_id=paid_order.user.id)


@pytest.mark.dashamail()
@pytest.mark.dashamail
def test_update_dashamail(paid_order, refund, mocker):
update_subscription = mocker.patch("apps.dashamail.tasks.DashamailSubscriber.subscribe")

Expand All @@ -292,8 +292,8 @@ def test_fail_if_bank_is_set_but_unknown(paid_order, refund):
refund(paid_order, paid_order.price)


@pytest.mark.auditlog()
@pytest.mark.freeze_time()
@pytest.mark.auditlog
@pytest.mark.freeze_time
def test_success_admin_log_created(paid_order, refund, user):
refund(paid_order, paid_order.price)

Expand Down Expand Up @@ -369,8 +369,8 @@ def test_partial_refund_order_unshipped_when_total_refund_eq_price(paid_tinkoff_
spy_unshipper.assert_called_once()


@pytest.mark.auditlog()
@pytest.mark.freeze_time()
@pytest.mark.auditlog
@pytest.mark.freeze_time
@pytest.mark.usefixtures("mock_tinkoff_refund")
def test_partial_refund_success_admin_log_created(paid_tinkoff_order, refund, user):
refund(paid_tinkoff_order, 500)
Expand Down

0 comments on commit 1949999

Please sign in to comment.