File tree Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 68
68
STATIC_ROOT = TEST_ROOT / "staticfiles"
69
69
# Mocks the bundle loading logic during tests
70
70
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" ,
76
75
}
76
+ }
77
77
78
78
GITHUB_REPO_ROOT = TEST_ROOT / "data"
79
79
DATA_DIR = TEST_ROOT / "data"
Original file line number Diff line number Diff line change 6
6
7
7
import pytest
8
8
9
+
9
10
# Import hooks and fixture overrides from the cms package to
10
11
# avoid duplicating the implementation
11
12
20
21
21
22
@pytest .fixture (autouse = True )
22
23
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
+ )
Original file line number Diff line number Diff line change 98
98
STATIC_ROOT = TEST_ROOT / "staticfiles"
99
99
# Mocks the bundle loading logic during tests
100
100
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" ,
106
105
}
106
+ }
107
107
108
108
STATUS_MESSAGE_PATH = TEST_ROOT / "status_message.json"
109
109
You can’t perform that action at this time.
0 commit comments