Skip to content

Instantly share code, notes, and snippets.

@fangpenlin
Created August 11, 2013 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fangpenlin/6204313 to your computer and use it in GitHub Desktop.
Save fangpenlin/6204313 to your computer and use it in GitHub Desktop.
Billy test errors on master branch
EEEEEEEEEEEEEEEE
======================================================================
ERROR: Failure: InvalidRequestError (Table 'charge_subscription' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "C:\GitHub\billy\billy\models\__init__.py", line 7, in <module>
from .charge.subscription import ChargeSubscription
File "C:\GitHub\billy\billy\models\charge\subscription.py", line 11, in <module>
class ChargeSubscription(Base):
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\api.py", line 50, in __init__
_as_declarative(cls, classname, cls.__dict__)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\base.py", line 222, in _as_declarative
**table_kw)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\schema.py", line 319, in __new__
"existing Table object." % key)
InvalidRequestError: Table 'charge_subscription' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.
======================================================================
ERROR: Failure: ImportError (No module named fixtures)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "C:\GitHub\billy\billy\tests\test_api\test_coupon.py", line 6, in <module>
from fixtures import (sample_customer, sample_customer_2, sample_customer_3,
ImportError: No module named fixtures
======================================================================
ERROR: Failure: ImportError (No module named fixtures)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "C:\GitHub\billy\env\lib\site-packages\nose-1.3.0-py2.7.egg\nose\importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "C:\GitHub\billy\billy\tests\test_api\test_customer.py", line 6, in <module>
from fixtures import (sample_customer, sample_customer_2, sample_customer_3,
ImportError: No module named fixtures
======================================================================
ERROR: test_bad_auth_key (billy.tests.test_api.test_group_auth.GroupAuthenticationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_api\test_group_auth.py", line 14, in setUp
super(GroupAuthenticationTest, self).setUp()
File "C:\GitHub\billy\billy\tests\test_api\__init__.py", line 63, in setUp
i, value in enumerate(TEST_API_KEYS)]
NameError: global name 'TEST_API_KEYS' is not defined
======================================================================
ERROR: test_good_auth_key (billy.tests.test_api.test_group_auth.GroupAuthenticationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_api\test_group_auth.py", line 14, in setUp
super(GroupAuthenticationTest, self).setUp()
File "C:\GitHub\billy\billy\tests\test_api\__init__.py", line 63, in setUp
i, value in enumerate(TEST_API_KEYS)]
NameError: global name 'TEST_API_KEYS' is not defined
======================================================================
ERROR: test_key_in_get (billy.tests.test_api.test_group_auth.GroupAuthenticationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_api\test_group_auth.py", line 14, in setUp
super(GroupAuthenticationTest, self).setUp()
File "C:\GitHub\billy\billy\tests\test_api\__init__.py", line 63, in setUp
i, value in enumerate(TEST_API_KEYS)]
NameError: global name 'TEST_API_KEYS' is not defined
======================================================================
ERROR: test_key_in_header (billy.tests.test_api.test_group_auth.GroupAuthenticationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_api\test_group_auth.py", line 14, in setUp
super(GroupAuthenticationTest, self).setUp()
File "C:\GitHub\billy\billy\tests\test_api\__init__.py", line 63, in setUp
i, value in enumerate(TEST_API_KEYS)]
NameError: global name 'TEST_API_KEYS' is not defined
======================================================================
ERROR: test_no_key (billy.tests.test_api.test_group_auth.GroupAuthenticationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_api\test_group_auth.py", line 14, in setUp
super(GroupAuthenticationTest, self).setUp()
File "C:\GitHub\billy\billy\tests\test_api\__init__.py", line 63, in setUp
i, value in enumerate(TEST_API_KEYS)]
NameError: global name 'TEST_API_KEYS' is not defined
======================================================================
ERROR: basic_test (billy.tests.test_models.test_charge_invoice.ChargeInvoiceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_charge_invoice.py", line 13, in setUp
super(ChargeInvoiceTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2121, in configure_mappers
mapper._post_configure_properties()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 1243, in _post_configure_properties
prop.init()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\interfaces.py", line 231, in init
self.do_init()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\properties.py", line 1027, in do_init
self._process_dependent_arguments()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\properties.py", line 1082, in _process_dependent_arguments
self.target = self.mapper.mapped_table
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\util\langhelpers.py", line 614, in __get__
obj.__dict__[self.__name__] = result = self.fget(obj)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\properties.py", line 1008, in mapper
mapper_ = mapper.class_mapper(self.argument(),
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\clsregistry.py", line 252, in return_cls
x = eval(arg, globals(), d)
File "<string>", line 1, in <module>
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\util\_collections.py", line 663, in __missing__
self[key] = val = self.creator(key)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\clsregistry.py", line 236, in access_cls
return _determine_container(key, cls._decl_class_registry[key])
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\clsregistry.py", line 222, in _determine_container
value = value.attempt_get([], key)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\ext\declarative\clsregistry.py", line 87, in attempt_get
(".".join(path + [key]))
InvalidRequestError: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: basic_test (billy.tests.test_models.test_charge_plan.ChargePlanTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_charge_plan.py", line 11, in setUp
super(ChargePlanTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: basic_test (billy.tests.test_models.test_charge_subscription.ChargePlanSubscriptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_charge_subscription.py", line 10, in setUp
super(ChargePlanSubscriptionTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: basic_test (billy.tests.test_models.test_charge_transaction.ChargeTransactionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_charge_transaction.py", line 11, in setUp
super(ChargeTransactionTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: basic_test (billy.tests.test_models.test_company.CompanyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_company.py", line 11, in setUp
super(CompanyTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: basic_test (billy.tests.test_models.test_coupon.CouponTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\test_models\test_coupon.py", line 12, in setUp
super(CouponTest, self).setUp()
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: main_test (billy.tests.test_models.test_interface.ChargePayoutInterfaceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
======================================================================
ERROR: main_test (billy.tests.test_models.test_interface.ChargePlanInterfaceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\GitHub\billy\billy\tests\__init__.py", line 18, in setUp
Company.query.filter(Company.processor_credential == credential).delete()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\scoping.py", line 131, in __get__
mapper = class_mapper(owner)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1112, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\util.py", line 1045, in _inspect_mapped_class
mapperlib.configure_mappers()
File "C:\GitHub\billy\env\lib\site-packages\sqlalchemy-0.8.1-py2.7-win32.egg\sqlalchemy\orm\mapper.py", line 2118, in configure_mappers
raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Multiple classes found for path "ChargeSubscription" in the registry of this declarative base. Please use a fully module-qualified path.
----------------------------------------------------------------------
Ran 16 tests in 0.012s
FAILED (errors=16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment