← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1381975] [NEW] UsersViewTests.test_index AttributeError: 'module' object has no attribute 'users'

 

Public bug reported:

nosetests openstack_dashboard.dashboards.admin.users.tests:UsersViewTests.test_index --nocapture --nologcapture --cover-package=openstack_dashboard --cover-inclusive --all-modules --exclude-dir=openstack_dashboard/test/integration_tests --verbosity=3
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.xcover: INFO: Coverage report will include only packages: ['openstack_dashboard']
nose.plugins.cover: INFO: Coverage report will include only packages: ['openstack_dashboard']
Creating test database for alias 'default' (':memory:')...
Running pre-sync handlers for application contenttypes
Running pre-sync handlers for application auth
Running pre-sync handlers for application sessions
Running pre-sync handlers for application staticfiles
Running pre-sync handlers for application messages
Running pre-sync handlers for application humanize
Running pre-sync handlers for application compressor
Running pre-sync handlers for application horizon
Running pre-sync handlers for application project
Running pre-sync handlers for application admin
Running pre-sync handlers for application settings
Running pre-sync handlers for application router
Creating tables ...
Creating table django_content_type
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_session
Running post-sync handlers for application contenttypes
Adding content type 'contenttypes | contenttype'
Adding permission 'contenttypes | content type | Can add content type'
Adding permission 'contenttypes | content type | Can change content type'
Adding permission 'contenttypes | content type | Can delete content type'
Running post-sync handlers for application auth
Adding content type 'auth | group'
Adding content type 'auth | user'
Adding content type 'auth | permission'
Adding permission 'auth | permission | Can add permission'
Adding permission 'auth | permission | Can change permission'
Adding permission 'auth | permission | Can delete permission'
Adding permission 'auth | group | Can add group'
Adding permission 'auth | group | Can change group'
Adding permission 'auth | group | Can delete group'
Adding permission 'auth | user | Can add user'
Adding permission 'auth | user | Can change user'
Adding permission 'auth | user | Can delete user'
Running post-sync handlers for application sessions
Adding content type 'sessions | session'
Adding permission 'sessions | session | Can add session'
Adding permission 'sessions | session | Can change session'
Adding permission 'sessions | session | Can delete session'
Running post-sync handlers for application staticfiles
Running post-sync handlers for application messages
Running post-sync handlers for application humanize
Running post-sync handlers for application compressor
Running post-sync handlers for application horizon
Running post-sync handlers for application project
Running post-sync handlers for application admin
Running post-sync handlers for application settings
Running post-sync handlers for application router
Installing custom SQL ...
Installing indexes ...
Installing index for auth.Permission model
Installing index for auth.Group_permissions model
Installing index for auth.User_groups model
Installing index for auth.User_user_permissions model
Installing index for sessions.Session model
Running post-sync handlers for application contenttypes
Adding content type 'contenttypes | contenttype'
Adding permission 'contenttypes | content type | Can add content type'
Adding permission 'contenttypes | content type | Can change content type'
Adding permission 'contenttypes | content type | Can delete content type'
Running post-sync handlers for application auth
Adding content type 'auth | group'
Adding content type 'auth | user'
Adding content type 'auth | permission'
Adding permission 'auth | permission | Can add permission'
Adding permission 'auth | permission | Can change permission'
Adding permission 'auth | permission | Can delete permission'
Adding permission 'auth | group | Can add group'
Adding permission 'auth | group | Can change group'
Adding permission 'auth | group | Can delete group'
Adding permission 'auth | user | Can add user'
Adding permission 'auth | user | Can change user'
Adding permission 'auth | user | Can delete user'
Running post-sync handlers for application sessions
Adding content type 'sessions | session'
Adding permission 'sessions | session | Can add session'
Adding permission 'sessions | session | Can change session'
Adding permission 'sessions | session | Can delete session'
Running post-sync handlers for application staticfiles
Running post-sync handlers for application messages
Running post-sync handlers for application humanize
Running post-sync handlers for application compressor
Running post-sync handlers for application horizon
Running post-sync handlers for application project
Running post-sync handlers for application admin
Running post-sync handlers for application settings
Running post-sync handlers for application router
Loading 'initial_data' fixtures...
Checking '/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/fixtures' for fixtures...
No fixture 'initial_data' in '/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/fixtures'.
Checking '/opt/stack/horizon' for fixtures...
No fixture 'initial_data' in '/opt/stack/horizon'.
Installed 0 object(s) from 0 fixture(s)
Failure: AttributeError ('module' object has no attribute 'users') ... ERROR

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'users')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 403, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/nose/util.py", line 321, in resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'users'

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

FAILED (errors=1)
Destroying test database for alias 'default' (':memory:')...

** Affects: horizon
     Importance: Undecided
         Status: Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1381975

Title:
  UsersViewTests.test_index AttributeError: 'module' object has no
  attribute 'users'

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  nosetests openstack_dashboard.dashboards.admin.users.tests:UsersViewTests.test_index --nocapture --nologcapture --cover-package=openstack_dashboard --cover-inclusive --all-modules --exclude-dir=openstack_dashboard/test/integration_tests --verbosity=3
  nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
  nose.plugins.xcover: INFO: Coverage report will include only packages: ['openstack_dashboard']
  nose.plugins.cover: INFO: Coverage report will include only packages: ['openstack_dashboard']
  Creating test database for alias 'default' (':memory:')...
  Running pre-sync handlers for application contenttypes
  Running pre-sync handlers for application auth
  Running pre-sync handlers for application sessions
  Running pre-sync handlers for application staticfiles
  Running pre-sync handlers for application messages
  Running pre-sync handlers for application humanize
  Running pre-sync handlers for application compressor
  Running pre-sync handlers for application horizon
  Running pre-sync handlers for application project
  Running pre-sync handlers for application admin
  Running pre-sync handlers for application settings
  Running pre-sync handlers for application router
  Creating tables ...
  Creating table django_content_type
  Creating table auth_permission
  Creating table auth_group_permissions
  Creating table auth_group
  Creating table auth_user_groups
  Creating table auth_user_user_permissions
  Creating table auth_user
  Creating table django_session
  Running post-sync handlers for application contenttypes
  Adding content type 'contenttypes | contenttype'
  Adding permission 'contenttypes | content type | Can add content type'
  Adding permission 'contenttypes | content type | Can change content type'
  Adding permission 'contenttypes | content type | Can delete content type'
  Running post-sync handlers for application auth
  Adding content type 'auth | group'
  Adding content type 'auth | user'
  Adding content type 'auth | permission'
  Adding permission 'auth | permission | Can add permission'
  Adding permission 'auth | permission | Can change permission'
  Adding permission 'auth | permission | Can delete permission'
  Adding permission 'auth | group | Can add group'
  Adding permission 'auth | group | Can change group'
  Adding permission 'auth | group | Can delete group'
  Adding permission 'auth | user | Can add user'
  Adding permission 'auth | user | Can change user'
  Adding permission 'auth | user | Can delete user'
  Running post-sync handlers for application sessions
  Adding content type 'sessions | session'
  Adding permission 'sessions | session | Can add session'
  Adding permission 'sessions | session | Can change session'
  Adding permission 'sessions | session | Can delete session'
  Running post-sync handlers for application staticfiles
  Running post-sync handlers for application messages
  Running post-sync handlers for application humanize
  Running post-sync handlers for application compressor
  Running post-sync handlers for application horizon
  Running post-sync handlers for application project
  Running post-sync handlers for application admin
  Running post-sync handlers for application settings
  Running post-sync handlers for application router
  Installing custom SQL ...
  Installing indexes ...
  Installing index for auth.Permission model
  Installing index for auth.Group_permissions model
  Installing index for auth.User_groups model
  Installing index for auth.User_user_permissions model
  Installing index for sessions.Session model
  Running post-sync handlers for application contenttypes
  Adding content type 'contenttypes | contenttype'
  Adding permission 'contenttypes | content type | Can add content type'
  Adding permission 'contenttypes | content type | Can change content type'
  Adding permission 'contenttypes | content type | Can delete content type'
  Running post-sync handlers for application auth
  Adding content type 'auth | group'
  Adding content type 'auth | user'
  Adding content type 'auth | permission'
  Adding permission 'auth | permission | Can add permission'
  Adding permission 'auth | permission | Can change permission'
  Adding permission 'auth | permission | Can delete permission'
  Adding permission 'auth | group | Can add group'
  Adding permission 'auth | group | Can change group'
  Adding permission 'auth | group | Can delete group'
  Adding permission 'auth | user | Can add user'
  Adding permission 'auth | user | Can change user'
  Adding permission 'auth | user | Can delete user'
  Running post-sync handlers for application sessions
  Adding content type 'sessions | session'
  Adding permission 'sessions | session | Can add session'
  Adding permission 'sessions | session | Can change session'
  Adding permission 'sessions | session | Can delete session'
  Running post-sync handlers for application staticfiles
  Running post-sync handlers for application messages
  Running post-sync handlers for application humanize
  Running post-sync handlers for application compressor
  Running post-sync handlers for application horizon
  Running post-sync handlers for application project
  Running post-sync handlers for application admin
  Running post-sync handlers for application settings
  Running post-sync handlers for application router
  Loading 'initial_data' fixtures...
  Checking '/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/fixtures' for fixtures...
  No fixture 'initial_data' in '/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/contrib/auth/fixtures'.
  Checking '/opt/stack/horizon' for fixtures...
  No fixture 'initial_data' in '/opt/stack/horizon'.
  Installed 0 object(s) from 0 fixture(s)
  Failure: AttributeError ('module' object has no attribute 'users') ... ERROR

  ======================================================================
  ERROR: Failure: AttributeError ('module' object has no attribute 'users')
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 403, in loadTestsFromName
      module = resolve_name(addr.module)
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/nose/util.py", line 321, in resolve_name
      obj = getattr(obj, part)
  AttributeError: 'module' object has no attribute 'users'

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

  FAILED (errors=1)
  Destroying test database for alias 'default' (':memory:')...

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


Follow ups

References