Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed May 28, 2018
1 parent 771fefa commit adada68
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ def test_ranges_clause(self):
}
}
clauses = self.search._get_range_clauses(json.dumps(data))
assert_equal(str(and_(*clauses)), (
'annotation.created >= :created_1 '
'AND annotation.created <= :created_2 '
'AND annotation.created > :created_3 '
'AND annotation.created < :created_4'
))
str_clauses = [str(c) for c in clauses]
assert_equal(str_clauses, [
'annotation.created >= :created_1',
'annotation.created <= :created_1',
'annotation.created > :created_1',
'annotation.created < :created_1'
])

def test_range_clauses_with_invalid_settings(self):
"""Test range clauses with invalid settings."""
Expand Down

0 comments on commit adada68

Please sign in to comment.