Mathias Markl 7 years ago
parent
commit
67cbc091e0
  1. 2
      .travis.yml
  2. 5
      muk_web_preview_mail/tests/test_mail_parse.py

2
.travis.yml

@ -24,6 +24,7 @@ env:
- TESTS="1" ODOO_REPO="odoo/odoo"
before_install:
- sudo apt-get install -y unoconv
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
@ -31,7 +32,6 @@ before_install:
- "phantomjs --version"
install:
- sudo apt-get --yes unoconv
- pip install cachetools
- pip install pdfconv
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools

5
muk_web_preview_mail/tests/test_mail_parse.py

@ -58,7 +58,10 @@ class MailParseTestCase(common.HttpCase):
_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/{}?download=true".format(
self.sample_mail_attachment.id
)
_logger.info(url)
self.assertTrue(self.url_open(url))
_logger.info(self.url_open(url))
_logger.info(self.url_open(url).headers)
Loading…
Cancel
Save