Skip to content

Commit e9487fa

Browse files
style: fix pycodestyle violations in test settings and conftest
1 parent 8f81a2a commit e9487fa

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

cms/envs/test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@
6868
STATIC_ROOT = TEST_ROOT / "staticfiles"
6969
# Mocks the bundle loading logic during tests
7070
WEBPACK_LOADER = {
71-
"DEFAULT": {
72-
"BUNDLE_DIR_NAME": "bundles/",
73-
"STATS_FILE": "/dev/null",
74-
"LOADER_CLASS": "webpack_loader.loader.FakeWebpackLoader",
75-
}
71+
"DEFAULT": {
72+
"BUNDLE_DIR_NAME": "bundles/",
73+
"STATS_FILE": "/dev/null",
74+
"LOADER_CLASS": "webpack_loader.loader.FakeWebpackLoader",
7675
}
76+
}
7777

7878
GITHUB_REPO_ROOT = TEST_ROOT / "data"
7979
DATA_DIR = TEST_ROOT / "data"

conftest.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import pytest
88

9+
910
# Import hooks and fixture overrides from the cms package to
1011
# avoid duplicating the implementation
1112

@@ -20,9 +21,9 @@
2021

2122
@pytest.fixture(autouse=True)
2223
def patch_render_bundle(monkeypatch):
23-
"""Monkey Patch the template tag to prevent errors due to missing bundles"""
24-
monkeypatch.setattr(
25-
webpack_loader,
26-
"render_bundle",
27-
lambda bundle_name, extension=None, config="DEFAULT", attrs="": ""
28-
)
24+
"""Monkey Patch the template tag to prevent errors due to missing bundles"""
25+
monkeypatch.setattr(
26+
webpack_loader,
27+
"render_bundle",
28+
lambda bundle_name, extension=None, config="DEFAULT", attrs="": ""
29+
)

lms/envs/test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@
9898
STATIC_ROOT = TEST_ROOT / "staticfiles"
9999
# Mocks the bundle loading logic during tests
100100
WEBPACK_LOADER = {
101-
"DEFAULT": {
102-
"BUNDLE_DIR_NAME": "bundles/",
103-
"STATS_FILE": "/dev/null",
104-
"LOADER_CLASS": "webpack_loader.loader.FakeWebpackLoader",
105-
}
101+
"DEFAULT": {
102+
"BUNDLE_DIR_NAME": "bundles/",
103+
"STATS_FILE": "/dev/null",
104+
"LOADER_CLASS": "webpack_loader.loader.FakeWebpackLoader",
106105
}
106+
}
107107

108108
STATUS_MESSAGE_PATH = TEST_ROOT / "status_message.json"
109109

0 commit comments

Comments
 (0)