diff --git a/ckanext/textpreview/tests/test_preview.py b/ckanext/textpreview/tests/test_preview.py index 4467c0a21e4..5dbc07002b7 100644 --- a/ckanext/textpreview/tests/test_preview.py +++ b/ckanext/textpreview/tests/test_preview.py @@ -114,8 +114,8 @@ def test_css_included(self): result = self.app.get(url, status='*') assert result.status == 200, result.status - assert 'text.css' in result.body, result.body - assert 'github.css' in result.body, result.body + assert (('text.css' in result.body) or ('text.min.css' in result.body)), result.body + assert (('github.css' in result.body) or ('github.min.css' in result.body)), result.body def test_iframe_is_shown(self): url = h.url_for(controller='package', action='resource_read',