django-wkhtmltopdf
django-wkhtmltopdf copied to clipboard
Jobs failing on Travis-CI for Intel architecture
Hi All, I am trying to run tests on Travis-CI for Intel (amd64) architecture but It encountered jobs failures. Jobs failing for python 3.6 & 3.7 with env DJANGO="Django>=3.0,<4.0". Please help me out to fix the issue
logs:
$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.7
$ pip --version
pip 20.1.1 from /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/pip (python 3.6)
before_install.1
0.00s$ PWD=pwd
before_install.2
0.00s$ echo '## Installing wkhtmltopdf dependencies'
before_install.3
2.11s$ sudo apt-get update -qq
before_install.4
3.95s$ sudo apt-get install -y libxrender1 libfontconfig1 zlib1g libfreetype6 libx11-6 libxext6
before_install.5
0.00s$ echo '## Installing wkhtmltopdf'
before_install.6
0.44s$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
before_install.7
1.49s$ tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
before_install.8
0.00s$ export WKHTMLTOPDF_CMD="$PWD/wkhtmltox/bin/wkhtmltopdf"
install.1
5.17s$ pip install $DJANGO
install.2
0.72s$ pip install -r test_requirements.txt
install.3
1.30s$ pip install .
4.21s$ make test
python ./wkhtmltopdf/tests/run.py
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
....F.............
FAIL: test_rendered_file_deleted_on_production (wkhtmltopdf.tests.tests.TestUtils) If WKHTMLTOPDF_DEBUG=False, delete rendered file on object close.
Traceback (most recent call last): File "/home/travis/build/kishorkunal-raj/django-wkhtmltopdf/wkhtmltopdf/tests/tests.py", line 130, in test_rendered_file_deleted_on_production self.assertFalse(os.path.isfile(filename)) AssertionError: True is not false
Ran 18 tests in 3.765s FAILED (failures=1) Destroying test database for alias 'default'... Makefile:12: recipe for target 'test' failed make: *** [test] Error 1 The command "make test" exited with 2. Done. Your build exited with 1.
Thanks in Advance!