Skip to content

Commit 8f8d5b6

Browse files
fixed linting
1 parent 58287db commit 8f8d5b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pytest_django/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def _get_option_with_source(
386386
func = getattr(mod, function_name, None)
387387

388388
if not func:
389-
raise ImportError(f"No function found with name {function_name} in module {module_path}!")
389+
raise ImportError(f"No function found with name {function_name} in module "
390+
f"{module_path}!")
390391

391392
# Call the function
392393
func()

tests/test_django_settings_module.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,12 @@ def test_dch_ini(testdir, monkeypatch) -> None:
516516
"""
517517
)
518518
pkg = testdir.mkpydir("tpkg")
519-
pkg.join("test.py").write(
520-
"""
519+
pkg.join("test.py").write("""
521520
# Test
522521
from django.conf import settings
523522
524523
def setup():
525-
settings.configure()
524+
settings.configure()
526525
""")
527526
testdir.makepyfile(
528527
"""

0 commit comments

Comments
 (0)