diff options
| author | jvoisin | 2019-02-24 23:03:17 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-24 23:32:32 +0100 |
| commit | 545dccc3527fcdf851b30b072ae6c7222b711777 (patch) | |
| tree | 6c76bd51bd56a87aac7e70accc460c80d492253f /tests | |
| parent | 524bae597209d775828bd176f6c00dd243f47c75 (diff) | |
In archive-based formats, the `mimetype` file comes first
This should improve epub compatibility,
along with other formats as a side-effect
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_deep_cleaning.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_deep_cleaning.py b/tests/test_deep_cleaning.py index 8466127..ccd4955 100644 --- a/tests/test_deep_cleaning.py +++ b/tests/test_deep_cleaning.py | |||
| @@ -83,6 +83,8 @@ class TestZipOrder(unittest.TestCase): | |||
| 83 | previous_name = '' | 83 | previous_name = '' |
| 84 | for item in zin.infolist(): | 84 | for item in zin.infolist(): |
| 85 | if previous_name == '': | 85 | if previous_name == '': |
| 86 | if item.filename == 'mimetype': | ||
| 87 | continue | ||
| 86 | previous_name = item.filename | 88 | previous_name = item.filename |
| 87 | continue | 89 | continue |
| 88 | elif item.filename < previous_name: | 90 | elif item.filename < previous_name: |
| @@ -97,6 +99,8 @@ class TestZipOrder(unittest.TestCase): | |||
| 97 | previous_name = '' | 99 | previous_name = '' |
| 98 | for item in zin.infolist(): | 100 | for item in zin.infolist(): |
| 99 | if previous_name == '': | 101 | if previous_name == '': |
| 102 | if item.filename == 'mimetype': | ||
| 103 | continue | ||
| 100 | previous_name = item.filename | 104 | previous_name = item.filename |
| 101 | continue | 105 | continue |
| 102 | self.assertGreaterEqual(item.filename, previous_name) | 106 | self.assertGreaterEqual(item.filename, previous_name) |
