Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
rev: "7.3.0"
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py36-plus]
30 changes: 10 additions & 20 deletions more/webassets/tests/test_webassets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,47 +17,37 @@ def prepare_fixtures(directory):
# if those javascripts are changed, the tests below need to be updated
# with the correct md5 hashes
with open(os.path.join(directory, "common", "jquery.js"), "w") as f:
f.write(
"""
f.write("""
/* fake jquery */
var $ = function(){};
"""
)
""")

with open(os.path.join(directory, "common", "underscore.js"), "w") as f:
f.write(
"""
f.write("""
/* fake underscore */
var _ = function(){};
"""
)
""")

with open(os.path.join(directory, "theme", "main.scss"), "w") as f:
f.write(
"""
f.write("""
body {
a {
color: blue;
}
}
"""
)
""")

with open(os.path.join(directory, "theme", "other.css"), "w") as f:
f.write(
"""
f.write("""
h1 {
font-size: 2rem;
}
"""
)
""")

with open(os.path.join(directory, "common", "extra.js"), "w") as f:
f.write(
"""
f.write("""
$(document).ready(function(){});
"""
)
""")


def spawn_test_app(tempdir):
Expand Down