fake librarian columns cannot be looked up by storm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I wanted to use the fake librarian in a test, but ran into a problem. The backtrace:
Error in test lp.code.
Traceback (most recent call last):
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
File "/home/
return fn(*args, **kwargs)
File "/home/
return self._get_
File "/home/
blob = self.factory.
File "/home/
return func(*args, **kw)
File "/home/
new_uuid = getUtility(
File "/home/
TemporaryBl
File "/home/
self.
File "/home/
self.
File "/home/
setattr(self, attr, value)
File "/home/
self.
File "/home/
remote_var = remote_
KeyError: <storm.
------------
remote_column has a table of LibraryFileAlias and a name of id. However remove_vars only has columns for *InstrumentedLi
This is enough to reproduce:
class TestBranch(
"""Test basic properties about Launchpad database branches."""
layer = DatabaseFunctio
def test_link_
# Linking a stream creates a SubunitStream.
branch = self.factory.
# ' ' is a small legitimate subunit stream.
blob = self.factory.
I'm marking this high because faster tests are generally important.
I'm dropping to low because of the parallel test project which will Save The World.