Actions
Issue #1797
closedunit.server.db.test_model fails when run in isolation
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
If I run the model tests by themselves, they experience at least one failure. When run together with other Pulp tests, they pass.
$ nosetests -sx server/test/unit/server/db/test_model.py
.....................................................E
======================================================================
ERROR: test_clean_orphans (unit.server.db.test_model.TestFileContentUnit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/fedora/.virtualenvs/pulp/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/home/fedora/devel/pulp/server/test/unit/server/db/test_model.py", line 563, in test_clean_orphans
unit.clean_orphans()
File "/home/fedora/devel/pulp/server/pulp/server/db/model/__init__.py", line 908, in clean_orphans
orphan_manger = factory.content_orphan_manager()
File "/home/fedora/devel/pulp/server/pulp/server/managers/factory.py", line 198, in content_orphan_manager
return get_manager(TYPE_CONTENT_ORPHAN)
File "/home/fedora/devel/pulp/server/pulp/server/managers/factory.py", line 440, in get_manager
raise InvalidType(type_key)
InvalidType: Invalid manager type requested [content-orphan-manager]
----------------------------------------------------------------------
Ran 54 tests in 0.697s
FAILED (errors=1)
Actions