Skip to content

Commit d006df9

Browse files
authored
Fix ebook issue (#4370)
* Fix ebook * Update limits
1 parent 082e857 commit d006df9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/tests/helpers_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_random_value_is_returned_as_none():
375375

376376

377377
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
378+
assert get_file_date_info("/static/pdfs/web_almanac_2019_en.pdf", "size") >= 8
379379

380380

381381
def test_versioned_css_file_is_of_correct_format():
@@ -390,12 +390,12 @@ def test_non_versioned_css_file_is_of_correct_format():
390390

391391

392392
def test_en_ebook_size_at_least_10_mb():
393-
assert get_ebook_size_in_mb("en", "2019") > 10
393+
assert get_ebook_size_in_mb("en", "2019") >= 8
394394

395395

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

400400

401401
def test_ebook_size_non_existant_language_is_zero():

0 commit comments

Comments
 (0)