Skip to content

Commit 581696b

Browse files
committed
style(tests): fix code formatting in test_config.py
- Apply consistent spacing and line breaks - Fix function parameter formatting - Add proper whitespace around imports and logic blocks - Ensure code follows project style guidelines
1 parent 8b57d84 commit 581696b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

tests/test_config.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,27 @@ def configure_settings(
2626
],
2727
)
2828
def test_get_version(
29-
settings: SettingsWrapper, version_str: str, expected_version_str: str, version: tuple[int, int, int], mocker: MockerFixture
29+
settings: SettingsWrapper,
30+
version_str: str,
31+
expected_version_str: str,
32+
version: tuple[int, int, int],
33+
mocker: MockerFixture,
3034
):
3135
settings.TAILWIND_CLI_VERSION = version_str
32-
36+
3337
# For "latest" version test, mock the network request to ensure fallback
3438
if version_str == "latest":
3539
# Clear any existing cache
3640
from django_tailwind_cli.config import _get_cache_path
41+
3742
cache_path = _get_cache_path()
3843
if cache_path.exists():
3944
cache_path.unlink()
40-
45+
4146
# Mock failed network request to force fallback
4247
request_get = mocker.patch("requests.get")
4348
request_get.return_value.ok = False
44-
49+
4550
r_version_str, r_version = get_version()
4651
assert r_version_str == expected_version_str
4752
assert r_version.major == version[0]
@@ -52,10 +57,11 @@ def test_get_version(
5257
def test_get_version_latest_without_proper_http_response(mocker: MockerFixture):
5358
# Clear any existing cache
5459
from django_tailwind_cli.config import _get_cache_path
60+
5561
cache_path = _get_cache_path()
5662
if cache_path.exists():
5763
cache_path.unlink()
58-
64+
5965
request_get = mocker.patch("requests.get")
6066
request_get.return_value.ok = False
6167

@@ -69,10 +75,11 @@ def test_get_version_latest_without_proper_http_response(mocker: MockerFixture):
6975
def test_get_version_latest_without_redirect(mocker: MockerFixture):
7076
# Clear any existing cache
7177
from django_tailwind_cli.config import _get_cache_path
78+
7279
cache_path = _get_cache_path()
7380
if cache_path.exists():
7481
cache_path.unlink()
75-
82+
7683
request_get = mocker.patch("requests.get")
7784
request_get.return_value.headers = {}
7885

0 commit comments

Comments
 (0)