Skip to content

Commit f234ef4

Browse files
committedMay 13, 2024·
dependencies: fix vulnerabilites
* Fixes dependencies. * Solves babel test fails. No `,` after day names in version 2.15 Co-Authored-by: Peter Weber <peter.weber@rero.ch>
1 parent 1a5abf5 commit f234ef4

File tree

5 files changed

+237
-254
lines changed

5 files changed

+237
-254
lines changed
 

‎.github/workflows/continuous-integration-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: docker-compose up -d
2525

2626
- name: Set up Python 3.9
27-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: 3.9
3030

‎poetry.lock

+227-244
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pyparsing = "^3.1.1"
117117
flask-wiki = "^0.3.1"
118118
dnspython = ">2.4.2"
119119
cryptography = ">41.0.7"
120-
babel = "<2.15.0" # NOTE: remove when https://github.com/python-babel/babel/issues/1081 is solved
120+
babel = ">2.14.0"
121121

122122
[tool.poetry.dev-dependencies]
123123
## Python packages development dependencies (order matters)

‎scripts/test

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ function pretests () {
7777
# Vulnerability ID: 42852
7878
# -> Vulnerability found in werkzeug version 2.2.3
7979
# Vulnerability ID: 62019
80-
# -> Vulnerability found in black version 22.12.0
81-
# Vulnerability ID: 66742
80+
# -> Vulnerability found in pip version 24.0
81+
# Vulnerability ID: 67599
8282
# -> Vulnerability found in py version 1.11.0
8383
# Vulnerability ID: 51457
8484
info_msg "Check vulnerabilities:"
85-
safety_exceptions="-i 40459 -i 51668 -i 42194 -i 42852 -i 62019 -i 66742 -i 51457"
85+
safety_exceptions="-i 40459 -i 51668 -i 42194 -i 42852 -i 62019 -i 67599 -i 51457"
8686
msg=$(safety check -o text ${safety_exceptions}) || {
8787
echo "Safety vulnerabilites found for packages:" $(safety check -o bare ${safety_exceptions})
88-
echo "Run:" "safety check -o screen ${safety_exceptions} | grep -i vulnerability" "for more details"
88+
echo "Run: \"safety check -o screen ${safety_exceptions} | grep -i vulnerability\" for more details"
8989
exit 1
9090
}
9191
info_msg "Check json:"

‎tests/ui/test_filters.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_get_record_by_ref(document_data, document):
3131
def test_date_filter_format_timestamp_en(app):
3232
"""Test full english date and tile filter."""
3333
datestring = format_date_filter('2018-06-06T09:29:55.947149+00:00')
34-
assert 'Wednesday, 6 June 2018, 11:29:55' in datestring
34+
assert 'Wednesday 6 June 2018, 11:29:55' in datestring
3535

3636
datestring = format_date_filter(
3737
'2018-06-06T09:29:55.947149+00:00', locale='fr')
@@ -53,7 +53,7 @@ def test_date_filter_timezone(app):
5353
"""Test medium english date filter."""
5454
datestring = format_date_filter(
5555
'2018-06-06T09:29:55.947149+00:00', timezone='Europe/Helsinki')
56-
assert 'Wednesday, 6 June 2018, 12:29:55' in datestring
56+
assert 'Wednesday 6 June 2018, 12:29:55' in datestring
5757

5858

5959
def test_date_filter_format_medium_date_en(app):
@@ -67,7 +67,7 @@ def test_date_filter_format_full_en(app):
6767
"""Test full english date filter."""
6868
datestring = format_date_filter(
6969
'1950-01-01', date_format='full', time_format=None)
70-
assert 'Sunday, 1 January 1950' in datestring
70+
assert 'Sunday 1 January 1950' in datestring
7171

7272

7373
def test_date_filter_format_full_fr(app):
@@ -102,7 +102,7 @@ def test_time_filter_format_delimiter(app):
102102
"""Test default time."""
103103
datestring = format_date_filter(
104104
'2018-06-06T09:29:55.947149+00:00', delimiter=' - ')
105-
assert datestring == 'Wednesday, 6 June 2018 - 11:29:55'
105+
assert datestring == 'Wednesday 6 June 2018 - 11:29:55'
106106

107107

108108
def test_to_pretty():

0 commit comments

Comments
 (0)
Please sign in to comment.