Skip to content

Commit

Permalink
Fix test_mimetype_xml when python-magic is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
borna-ng committed Oct 14, 2024
1 parent 934f2dc commit 9c02a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/tests/test_mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_mimetype_zip(self):

def test_mimetype_xml(self):
mimetype = guess_mimetype(XML, default='test')
self.assertEqual(mimetype, 'application/xml')
self.assertIn(mimetype, ('application/xml', 'text/xml')) # JobRad: python-magic returns text/xml

def test_mimetype_get_extension(self):
self.assertEqual(get_extension('filename.Abc'), '.abc')
Expand Down

0 comments on commit 9c02a73

Please sign in to comment.