{"comment":{"url":"https://api.github.com/repos/google/ggrc-core/comments/16105207","html_url":"https://github.com/google/ggrc-core/commit/ed940d67aaf0b65ab84c208ee0711ba7a9f5d0e6#commitcomment-16105207","id":16105207,"user":{"login":"uskudnik","id":120451,"avatar_url":"https://avatars.githubusercontent.com/u/120451?v=3","gravatar_id":"","url":"https://api.github.com/users/uskudnik","html_url":"https://github.com/uskudnik","followers_url":"https://api.github.com/users/uskudnik/followers","following_url":"https://api.github.com/users/uskudnik/following{/other_user}","gists_url":"https://api.github.com/users/uskudnik/gists{/gist_id}","starred_url":"https://api.github.com/users/uskudnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uskudnik/subscriptions","organizations_url":"https://api.github.com/users/uskudnik/orgs","repos_url":"https://api.github.com/users/uskudnik/repos","events_url":"https://api.github.com/users/uskudnik/events{/privacy}","received_events_url":"https://api.github.com/users/uskudnik/received_events","type":"User","site_admin":false},"position":4,"line":7,"path":"test/integration/ggrc_workflows/workflow_cycle_calculator/test_one_time_workflow.py","commit_id":"ed940d67aaf0b65ab84c208ee0711ba7a9f5d0e6","created_at":"2016-02-15T21:52:36Z","updated_at":"2016-02-15T21:52:36Z","body":"FYI - this one was NOT unused. It's marked as unused in every `test_*_workflow.py` but due to our beautiful import system we need to import this if we want to run these tests suits individually.\r\n\r\nWithout it, we get:\r\n\r\n````\r\n======================================================================\r\nERROR: Failure: AttributeError ('module' object has no attribute '__bases__')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/loader.py\", line 413, in loadTestsFromName\r\n    addr.filename, addr.module)\r\n  File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/importer.py\", line 47, in importFromPath\r\n    return self.importFromDir(dir_path, fqname)\r\n  File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/importer.py\", line 94, in importFromDir\r\n    mod = load_module(part_fqname, fh, filename, desc)\r\n  File \"/vagrant/test/integration/ggrc_workflows/workflow_cycle_calculator/test_one_time_workflow.py\", line 12, in <module>\r\n    from ggrc_workflows.models import Cycle\r\n  File \"/vagrant/src/ggrc_workflows/__init__.py\", line 16, in <module>\r\n    from ggrc_workflows import models, notification\r\n  File \"/vagrant/src/ggrc_workflows/models/__init__.py\", line 13, in <module>\r\n    from .workflow import Workflow\r\n  File \"/vagrant/src/ggrc_workflows/models/workflow.py\", line 33, in <module>\r\n    from ggrc_basic_permissions.models import UserRole\r\n  File \"/vagrant/src/ggrc_basic_permissions/__init__.py\", line 633, in <module>\r\n    from ggrc.app import app\r\n  File \"/vagrant/src/ggrc/app.py\", line 44, in <module>\r\n    ggrc.models.init_app(app)\r\n  File \"/vagrant/src/ggrc/models/__init__.py\", line 169, in init_app\r\n    init_all_models(app)\r\n  File \"/vagrant/src/ggrc/models/__init__.py\", line 84, in init_all_models\r\n    for extension_module in get_extension_modules():\r\n  File \"/vagrant/src/ggrc/extensions.py\", line 25, in get_extension_modules\r\n    modules.append(get_extension_module(m))\r\n  File \"/vagrant/src/ggrc/extensions.py\", line 32, in get_extension_module\r\n    __import__(module_name)\r\n  File \"/vagrant/src/ggrc_gdrive_integration/__init__.py\", line 63, in <module>\r\n    Workflow.__bases__ = (Folderable,) + Workflow.__bases__\r\nAttributeError: 'module' object has no attribute '__bases__'\r\n\r\n----------------------------------------------------------------------\r\nRan 1 test in 0.005s\r\n\r\nFAILED (errors=1)\r\n````"}}