Problem with module in Nosetests, python

1

I'm trying to run my tests (done with python 3.5), meager nosetests, but doing it with the nosetests command I get the following

E
======================================================================
ERROR: Failure: ImportError (No module named 'www')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/local/lib/python3.5/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/local/lib/python3.5/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/local/lib/python3.5/dist-packages/nose/importer.py", line 79, in importFromDir
    fh, filename, desc = find_module(part, path)
  File "/usr/lib/python3.5/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'www'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

The problem is that in my project I do not have any module that is named like that, and I do not find that there is one of Nosetests.

By running my tests separately, they work perfectly, but when I do it by nosetests it's the problem.

The test heading is like this:

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time import unittest from pyvirtualdisplay import Display class LoginTest(unittest.TestCase): (definicion de funciones) obj = LoginTest() obj.test()

Any ideas?

    
asked by Yamila Marucci 09.02.2018 в 18:29
source

0 answers