Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test suite failing #67

Open
iboates opened this issue Aug 29, 2017 · 2 comments
Open

test suite failing #67

iboates opened this issue Aug 29, 2017 · 2 comments

Comments

@iboates
Copy link

iboates commented Aug 29, 2017

I am following this video: https://www.youtube.com/watch?v=DiwQ0SJYzJ8

My test suite fails when I run "make test":

isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ make test

----------------------------------------
Compiled translation files to .qm files.
----------------------------------------

----------------------
Regression Test Suite
----------------------
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
#1 Test that the plugin __init__ will validate on plugins.qgis.org. ... ok
#2 Test we can click cancel. ... ok
#3 Test we can click OK. ... ok
#4 Test that QGIS properly parses a wkt string. ... FAIL
#5 QGIS environment has the expected providers ... FAIL
#6 Test we can click OK. ... ok
#7 Test that translations work. ... FAIL

======================================================================
FAIL: Test that QGIS properly parses a wkt string.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_qgis_environment.py", line 50, in test_projection
    self.assertEqual(auth_id, expected_auth_id)
AssertionError: u'' != 'EPSG:4326'

======================================================================
FAIL: QGIS environment has the expected providers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_qgis_environment.py", line 34, in test_qgis_environment
    self.assertIn('gdal', r.providerList())
AssertionError: 'gdal' not found in []

======================================================================
FAIL: Test that translations work.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_translations.py", line 49, in test_qgis_translations
    self.assertEqual(real_message, expected_message)
AssertionError: u'Good morning' != 'Goeie more'

----------------------------------------------------------------------
Ran 7 tests in 0.015s

FAILED (failures=3)
----------------------
If you get a 'no module named qgis.core error, try sourcing
the helper script we have provided first then run make test.
e.g. source run-env-linux.sh <path to qgis install>; make test
----------------------

Before running it, I ran:

isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ source scripts/run-env-linux.sh /usr/bin/qgis
/usr/bin/qgis
QGIS PATH: /usr/bin/qgis
This script is intended to be sourced to set up your shell to
use a QGIS 2.0 built in /usr/bin/qgis

To use it do:
source scripts/run-env-linux.sh /your/optional/install/path

Then use the make file supplied here e.g. make guitest

This should be my qgis installation path, since I get this when running which qgis:

isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ which qgis
/usr/bin/qgis

Any ideas? I cannot get the test suite to run in my IDE either (PyCharm)

@ciaransweet
Copy link

Also experiencing this.

@UralmashFox
Copy link

We too :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants