Skip to content

Commit 5358c40

Browse files
committed
refactor: TT-185 delete isintance validation
1 parent 2342ce9 commit 5358c40

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/utils/query_builder_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ def test_add_sql_visibility_condition(
110110
(1, 1),
111111
(10, 10),
112112
(None, None),
113-
("hola", None),
114-
(["lista"], None),
115113
],
116114
)
117115
def test_add_sql_limit_condition(limit_value, expected_limit):
@@ -126,8 +124,6 @@ def test_add_sql_limit_condition(limit_value, expected_limit):
126124
(1, 1),
127125
(10, 10),
128126
(None, None),
129-
("hola", None),
130-
(["lista"], None),
131127
],
132128
)
133129
def test_add_sql_offset_condition(

utils/query_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def add_sql_visibility_condition(self, visible_only: bool):
4141
return self
4242

4343
def add_sql_limit_condition(self, limit):
44-
if limit and isinstance(limit, int):
44+
if limit:
4545
self.limit = limit
4646
return self
4747

4848
def add_sql_offset_condition(self, offset):
49-
if offset and isinstance(offset, int):
49+
if offset:
5050
self.offset = offset
5151
return self
5252

0 commit comments

Comments
 (0)