Skip to content

Commit 2d5d84f

Browse files
committed
Minor styling tweaks
1 parent 4c8ab6b commit 2d5d84f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/test_cookiecutter_generation.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def test_djlint_check_passes(cookies, context_override):
273273

274274

275275
@pytest.mark.parametrize(
276-
["use_docker", "expected_test_script"],
276+
("use_docker", "expected_test_script"),
277277
[
278278
("n", "pytest"),
279279
("y", "docker compose -f docker-compose.local.yml run django pytest"),
@@ -298,7 +298,7 @@ def test_travis_invokes_pytest(cookies, context, use_docker, expected_test_scrip
298298

299299

300300
@pytest.mark.parametrize(
301-
["use_docker", "expected_test_script"],
301+
("use_docker", "expected_test_script"),
302302
[
303303
("n", "pytest"),
304304
("y", "docker compose -f docker-compose.local.yml run django pytest"),
@@ -317,15 +317,15 @@ def test_gitlab_invokes_precommit_and_pytest(cookies, context, use_docker, expec
317317
try:
318318
gitlab_config = yaml.safe_load(gitlab_yml)
319319
assert gitlab_config["precommit"]["script"] == [
320-
"pre-commit run --show-diff-on-failure --color=always --all-files"
320+
"pre-commit run --show-diff-on-failure --color=always --all-files",
321321
]
322322
assert gitlab_config["pytest"]["script"] == [expected_test_script]
323323
except yaml.YAMLError as e:
324324
pytest.fail(e)
325325

326326

327327
@pytest.mark.parametrize(
328-
["use_docker", "expected_test_script"],
328+
("use_docker", "expected_test_script"),
329329
[
330330
("n", "pytest"),
331331
("y", "docker compose -f docker-compose.local.yml run django pytest"),
@@ -380,7 +380,7 @@ def test_error_if_incompatible(cookies, context, invalid_context):
380380

381381

382382
@pytest.mark.parametrize(
383-
["editor", "pycharm_docs_exist"],
383+
("editor", "pycharm_docs_exist"),
384384
[
385385
("None", False),
386386
("PyCharm", True),
@@ -403,7 +403,7 @@ def test_trim_domain_email(cookies, context):
403403
"use_docker": "y",
404404
"domain_name": " example.com ",
405405
"email": " me@example.com ",
406-
}
406+
},
407407
)
408408
result = cookies.bake(extra_context=context)
409409

tests/test_hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from hooks.post_gen_project import append_to_gitignore_file
99

1010

11-
@pytest.fixture()
11+
@pytest.fixture
1212
def working_directory(tmp_path):
1313
prev_cwd = Path.cwd()
1414
os.chdir(tmp_path)

0 commit comments

Comments
 (0)