Skip to content

Commit 528accb

Browse files
Bump jinja2 from 3.0.3 to 3.1.2 (#432)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Bull <[email protected]>
1 parent 305f9e0 commit 528accb

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aiohttp-mako==0.4.0
66
aioredis==2.0.1
77
coverage==7.2.7
88
docutils==0.20.1
9-
jinja2==3.0.3
9+
jinja2==3.1.2
1010
multidict==6.0.2
1111
pygments==2.16.1
1212
pytest==7.4.2

tests/test_panels_versions.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ async def test_packages():
1212
request_mock = create_autospec(web.Request)
1313
panel = VersionDebugPanel(request_mock)
1414

15-
jinja2_metadata = {
16-
"version": "3.0.3",
17-
"lowername": "jinja2",
18-
"name": "Jinja2",
19-
"dependencies": ["MarkupSafe (>=2.0)", "Babel (>=2.7) ; extra == 'i18n'"],
20-
"url": "https://palletsprojects.com/p/jinja/",
21-
}
22-
assert jinja2_metadata in panel.data["packages"]
15+
jinja2_metadata = next(p for p in panel.data["packages"] if p["name"] == "Jinja2")
16+
assert "version" in jinja2_metadata
17+
assert jinja2_metadata["lowername"] == "jinja2"
18+
assert any("MarkupSafe" in d for d in jinja2_metadata["dependencies"])
19+
assert "url" in jinja2_metadata

0 commit comments

Comments
 (0)