Skip to content

Commit 3a746c5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent eb817b5 commit 3a746c5

1 file changed

Lines changed: 10 additions & 20 deletions

File tree

more/webassets/tests/test_webassets.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,37 @@ def prepare_fixtures(directory):
1717
# if those javascripts are changed, the tests below need to be updated
1818
# with the correct md5 hashes
1919
with open(os.path.join(directory, "common", "jquery.js"), "w") as f:
20-
f.write(
21-
"""
20+
f.write("""
2221
/* fake jquery */
2322
var $ = function(){};
24-
"""
25-
)
23+
""")
2624

2725
with open(os.path.join(directory, "common", "underscore.js"), "w") as f:
28-
f.write(
29-
"""
26+
f.write("""
3027
/* fake underscore */
3128
var _ = function(){};
32-
"""
33-
)
29+
""")
3430

3531
with open(os.path.join(directory, "theme", "main.scss"), "w") as f:
36-
f.write(
37-
"""
32+
f.write("""
3833
body {
3934
a {
4035
color: blue;
4136
}
4237
}
43-
"""
44-
)
38+
""")
4539

4640
with open(os.path.join(directory, "theme", "other.css"), "w") as f:
47-
f.write(
48-
"""
41+
f.write("""
4942
h1 {
5043
font-size: 2rem;
5144
}
52-
"""
53-
)
45+
""")
5446

5547
with open(os.path.join(directory, "common", "extra.js"), "w") as f:
56-
f.write(
57-
"""
48+
f.write("""
5849
$(document).ready(function(){});
59-
"""
60-
)
50+
""")
6151

6252

6353
def spawn_test_app(tempdir):

0 commit comments

Comments
 (0)