Skip to content

Commit

Permalink
Update test_conditions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rajveerappan committed Aug 5, 2024
1 parent 4a19dec commit b991f52
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/dynamodb/test_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ def test_eq(self):
},
)

def test_eq_repr(self):
actual_repr = str(Equals(self.value, self.value2))
assert actual_repr == 'mykey = foo'

def test_ne(self):
self.build_and_assert_expression(
NotEquals(self.value, self.value2),
Expand All @@ -294,6 +298,10 @@ def test_ne(self):
},
)

def test_ne_repr(self):
actual_repr = str(NotEquals(self.value, self.value2))
assert actual_repr == 'mykey <> foo'

def test_lt(self):
self.build_and_assert_expression(
LessThan(self.value, self.value2),
Expand All @@ -304,6 +312,10 @@ def test_lt(self):
},
)

def test_lt_repr(self):
actual_repr = str(LessThan(self.value, self.value2))
assert actual_repr == 'mykey < foo'

def test_lte(self):
self.build_and_assert_expression(
LessThanEquals(self.value, self.value2),
Expand Down

0 comments on commit b991f52

Please sign in to comment.