Skip to content

Commit 5005f99

Browse files
🎨 Auto format
1 parent 539f028 commit 5005f99

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

‎tests/test_cli_deploy.py‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,9 +2214,7 @@ def test_large_file_threshold_warning(
22142214
team_id = "some-team-id"
22152215
deployment_data = _get_random_deployment(app_id=app_id)
22162216

2217-
_setup_deployment_mocks(
2218-
respx_mock, app_id, team_id, deployment_data, tmp_path
2219-
)
2217+
_setup_deployment_mocks(respx_mock, app_id, team_id, deployment_data, tmp_path)
22202218
respx_mock.get(f"/apps/{app_id}/deployments/{deployment_data['id']}").mock(
22212219
return_value=Response(200, json={**deployment_data, "status": "success"})
22222220
)
@@ -2244,9 +2242,7 @@ def test_large_file_threshold_only_top_three_files_with_more_indicator(
22442242
team_id = "some-team-id"
22452243
deployment_data = _get_random_deployment(app_id=app_id)
22462244

2247-
_setup_deployment_mocks(
2248-
respx_mock, app_id, team_id, deployment_data, tmp_path
2249-
)
2245+
_setup_deployment_mocks(respx_mock, app_id, team_id, deployment_data, tmp_path)
22502246
respx_mock.get(f"/apps/{app_id}/deployments/{deployment_data['id']}").mock(
22512247
return_value=Response(200, json={**deployment_data, "status": "success"})
22522248
)
@@ -2278,9 +2274,7 @@ def test_large_file_threshold_does_not_warn_when_no_large_files(
22782274
team_id = "some-team-id"
22792275
deployment_data = _get_random_deployment(app_id=app_id)
22802276

2281-
_setup_deployment_mocks(
2282-
respx_mock, app_id, team_id, deployment_data, tmp_path
2283-
)
2277+
_setup_deployment_mocks(respx_mock, app_id, team_id, deployment_data, tmp_path)
22842278
respx_mock.get(f"/apps/{app_id}/deployments/{deployment_data['id']}").mock(
22852279
return_value=Response(200, json={**deployment_data, "status": "success"})
22862280
)
@@ -2303,9 +2297,7 @@ def test_large_file_threshold_custom_threshold(
23032297
team_id = "some-team-id"
23042298
deployment_data = _get_random_deployment(app_id=app_id)
23052299

2306-
_setup_deployment_mocks(
2307-
respx_mock, app_id, team_id, deployment_data, tmp_path
2308-
)
2300+
_setup_deployment_mocks(respx_mock, app_id, team_id, deployment_data, tmp_path)
23092301
respx_mock.get(f"/apps/{app_id}/deployments/{deployment_data['id']}").mock(
23102302
return_value=Response(200, json={**deployment_data, "status": "success"})
23112303
)

‎tests/test_deploy_utils.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ def test_get_large_files_returns_files_at_or_above_threshold(tmp_path: Path) ->
170170
def test_get_large_files_excludes_default_exclusions(tmp_path: Path) -> None:
171171
"""Should not count files in excluded directories like .venv or __pycache__."""
172172
_create_file(tmp_path / ".venv" / "lib" / "huge.so", 5 * 1024 * 1024)
173-
_create_file(
174-
tmp_path / "__pycache__" / "module.cpython-311.pyc", 5 * 1024 * 1024
175-
)
173+
_create_file(tmp_path / "__pycache__" / "module.cpython-311.pyc", 5 * 1024 * 1024)
176174
_create_file(tmp_path / "main.py", 5 * 1024 * 1024)
177175

178176
assert _get_large_files(tmp_path, threshold_mb=1) == [

0 commit comments

Comments
 (0)