mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update Makefile variables and refactor test_get_user_profile_audios.py
This commit is contained in:
parent
788dc1bfed
commit
e36d2b2006
2 changed files with 3 additions and 5 deletions
4
Makefile
4
Makefile
|
|
@ -37,14 +37,14 @@ install: clean
|
|||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
uv run ruff format --check --diff $(code_dir)
|
||||
uv run ruff format --check --diff $(package_dir)
|
||||
uv run ruff check --show-fixes --preview $(package_dir) $(examples_dir)
|
||||
uv run mypy $(package_dir)
|
||||
|
||||
.PHONY: reformat
|
||||
reformat:
|
||||
uv run ruff format $(code_dir)
|
||||
uv run ruff check --fix $(code_dir)
|
||||
uv run ruff check --fix $(package_dir)
|
||||
|
||||
# =================================================================================================
|
||||
# Tests
|
||||
|
|
|
|||
|
|
@ -10,9 +10,7 @@ class TestGetUserProfileAudios:
|
|||
ok=True,
|
||||
result=UserProfileAudios(
|
||||
total_count=1,
|
||||
audios=[
|
||||
Audio(file_id="file_id", file_unique_id="file_unique_id", duration=120)
|
||||
],
|
||||
audios=[Audio(file_id="file_id", file_unique_id="file_unique_id", duration=120)],
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue