Skip to content

Commit

Permalink
Replace tests expecting dots instead of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalmau committed Feb 12, 2018
1 parent 56aeaa8 commit 52c8328
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/ooquery_spec.py
Expand Up @@ -45,7 +45,7 @@ def dummy_fk(table, field):
t2 = Table('table2')
join = t.join(t2)
join.condition = join.left.table_2 == join.right.id
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2_name'))
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2.name'))
sel.where = And((join.right.code == 'XXX',))
expect(tuple(sql)).to(equal(tuple(sel)))

Expand All @@ -55,7 +55,7 @@ def dummy_fk(table, field):
t2 = Table('table2')
join = t.join(t2)
join.condition = join.left.table_2 == join.right.id
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2_name'))
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2.name'))
expect(tuple(sql)).to(equal(tuple(sel)))

with it('must support deep joins'):
Expand Down Expand Up @@ -94,7 +94,7 @@ def dummy_fk(table, field):
join.condition = t.table_2_id == join.right.id
join2 = join.join(t3)
join2.condition = t2.table_3_id == join2.right.id
sel = join2.select(t.field1.as_('field1'), t.field2.as_('field2'), t3.name.as_('table_2_id_table_3_id_name'))
sel = join2.select(t.field1.as_('field1'), t.field2.as_('field2'), t3.name.as_('table_2_id.table_3_id.name'))
sel.where = And((join2.right.code == 'XXX',))
expect(tuple(sql)).to(equal(tuple(sel)))
expect(q.parser.joins_map).to(have_len(2))
Expand Down Expand Up @@ -195,7 +195,7 @@ def dummy_fk(table, field):
t2 = Table('table2')
join = t.join(t2)
join.condition = join.left.table_2 == join.right.id
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2_name'))
sel = join.select(t.field1.as_('field1'), t.field2.as_('field2'), t2.name.as_('table_2.name'))
expect(tuple(sql)).to(equal(tuple(sel)))

with it('must support recursive joins'):
Expand Down

0 comments on commit 52c8328

Please sign in to comment.