Mathias Markl 7 years ago
parent
commit
427ec88f86
  1. 1
      .travis.yml
  2. 4
      muk_web_preview_mail/tests/test_mail_parse.py

1
.travis.yml

@ -31,6 +31,7 @@ before_install:
- "phantomjs --version" - "phantomjs --version"
install: install:
- sudo apt-get --yes unoconv
- pip install cachetools - pip install cachetools
- pip install pdfconv - pip install pdfconv
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools

4
muk_web_preview_mail/tests/test_mail_parse.py

@ -54,6 +54,10 @@ class MailParseTestCase(common.HttpCase):
def test_parse_mail(self): def test_parse_mail(self):
self.authenticate('admin', 'admin') self.authenticate('admin', 'admin')
self.assertTrue(self.url_open('/'))
_logger.info(self.url_open('/'))
_logger.info(self.url_open('/').headers)
_logger.info(self.url_open('/').content)
url = "/web/preview/converter/mail?url=/web/content/%s?download=true" % self.sample_mail_attachment.id url = "/web/preview/converter/mail?url=/web/content/%s?download=true" % self.sample_mail_attachment.id
self.assertTrue(self.url_open(url)) self.assertTrue(self.url_open(url))
_logger.info(self.url_open(url)) _logger.info(self.url_open(url))

Loading…
Cancel
Save