Skip to content

Commit

Permalink
Remove tests that can't be updated to use text attributes yet (see is…
Browse files Browse the repository at this point in the history
…sue twisted#60)
  • Loading branch information
ddormer committed Jan 25, 2016
1 parent c39ddf9 commit f8530ec
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions axiom/test/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,16 +1264,6 @@ def testStartsEndsWith(self):
self.query(D, D.four.endswith(u'3.four')), [self.d3])


def testStartsEndsWithColumn(self):
self.assertQuery(
D.one.startswith(D.two),
'(%s LIKE (%s || ?))' % (D.one.getColumnName(self.store),
D.two.getColumnName(self.store)),
['%'])
self.assertEquals(
self.query(D, D.one.startswith(D.two)), [])


def testStartsEndsWithText(self):
self.assertEquals(
self.query(D, D.four.startswith(u'd1')),
Expand All @@ -1283,20 +1273,6 @@ def testStartsEndsWithText(self):
[self.d2])


def testOtherTable(self):
self.assertQuery(
D.one.startswith(A.type),
'(%s LIKE (%s || ?))' % (D.one.getColumnName(self.store),
A.type.getColumnName(self.store)),
['%'])

C(store=self.store, name=u'd1.')
C(store=self.store, name=u'2.one')
self.assertEquals(
self.query(D, D.one.startswith(C.name)), [self.d1])
self.assertEquals(
self.query(D, D.one.endswith(C.name)), [self.d2])


class UniqueTest(TestCase):

Expand Down

0 comments on commit f8530ec

Please sign in to comment.