← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1209030] Re: Couldn't run unittest for seperated module

 

** Changed in: keystone
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1209030

Title:
  Couldn't run unittest for seperated module

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  Reproduce Step:
  1. cd to keystone dir: cd ~/src/keystone
  2. run cmd: ./run_tests.sh tests.test_content_types

  Error Log:
  ======================================================================
  ERROR: Failure: ImportError (No module named tests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/trystack/src/keystone/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 402, in loadTestsFromName
      module = resolve_name(addr.module)
    File "/home/trystack/src/keystone/.venv/local/lib/python2.7/site-packages/nose/util.py", line 311, in resolve_name
      module = __import__('.'.join(parts_copy))
  ImportError: No module named tests

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

  FAILED (errors=1)

  
  Add __init__.py in tests dir could fix this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1209030/+subscriptions