Skip to content

Commit feeadd2

Browse files
authored
Fix ebook tests (#4027)
1 parent 21b5814 commit feeadd2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/server/tests/helpers_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ def test_random_value_is_returned_as_none():
374374
assert get_file_date_info("en/2019/index.html", "rubbish") is None
375375

376376

377-
def test_en_ebook_size_at_least_16_mb_info():
378-
assert get_file_date_info("/static/pdfs/web_almanac_2019_en.pdf", "size") > 16
377+
def test_en_ebook_size_at_least_10_mb_info():
378+
assert get_file_date_info("/static/pdfs/web_almanac_2019_en.pdf", "size") > 10
379379

380380

381381
def test_versioned_css_file_is_of_correct_format():
@@ -389,13 +389,13 @@ def test_non_versioned_css_file_is_of_correct_format():
389389
assert versioned_filename == "/static/css/random.css"
390390

391391

392-
def test_en_ebook_size_at_least_16_mb():
393-
assert get_ebook_size_in_mb("en", "2019") > 16
392+
def test_en_ebook_size_at_least_10_mb():
393+
assert get_ebook_size_in_mb("en", "2019") > 10
394394

395395

396396
@pytest.mark.parametrize("config", all_ebooks)
397-
def test_all_configured_ebooks_at_least_16_mb(config):
398-
assert get_ebook_size_in_mb(config[0], config[1]) > 16
397+
def test_all_configured_ebooks_at_least_10_mb(config):
398+
assert get_ebook_size_in_mb(config[0], config[1]) > 10
399399

400400

401401
def test_ebook_size_non_existant_language_is_zero():

0 commit comments

Comments
 (0)