Here is a simple test case:
def test_alias_reference(self): c = StringIO() debug(True, c) Bar1 = ClassAlias(Bar, "bar1") self.store.find(Bar1, Bar1.foo == None).one() data = c.getvalue() self.assertNotIn("bar.foo_id IS NULL", data)
Unfortunately it's more complicated than I thought. I don't know how to fix that for now.
Here is a simple test case:
def test_alias_ reference( self):
self.store. find(Bar1, Bar1.foo == None).one()
self.assertNot In("bar. foo_id IS NULL", data)
c = StringIO()
debug(True, c)
Bar1 = ClassAlias(Bar, "bar1")
data = c.getvalue()
Unfortunately it's more complicated than I thought. I don't know how to fix that for now.