Skip to content
Prev Previous commit
Next Next commit
feat: TT-243 Improve code quality by fixing code smells
  • Loading branch information
jcalarcon98 committed Jun 9, 2021
commit bad6ee2aa307173d00463f9c0f3eb30836abaf0e
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def test_build_with_add_sql_date_range_condition():
TimeEntryQueryBuilder()
.add_sql_date_range_condition(
{
"start_date": "2021-03-19T05:00:00.000Z",
"end_date": "2021-03-20T10:00:00.000Z",
"start_date": "2021-04-19T05:00:00.000Z",
"end_date": "2021-04-20T10:00:00.000Z",
}
)
.build()
Expand All @@ -60,8 +60,8 @@ def test_build_with_add_sql_date_range_condition():


def test_add_sql_interception_with_date_range_condition():
start_date = "2021-03-19T05:07:00.000Z"
end_date = "2021-03-25T10:00:00.000Z"
start_date = "2021-01-19T05:07:00.000Z"
end_date = "2021-01-25T10:00:00.000Z"

time_entry_query_builder = (
TimeEntryQueryBuilder().add_sql_interception_with_date_range_condition(
Expand All @@ -80,8 +80,8 @@ def test_add_sql_interception_with_date_range_condition():


def test_build_with_add_sql_interception_with_date_range_condition():
start_date = "2021-03-19T05:07:00.000Z"
end_date = "2021-03-25T10:00:00.000Z"
start_date = "2021-02-19T05:07:00.000Z"
end_date = "2021-02-25T10:00:00.000Z"
time_entry_query_builder = (
TimeEntryQueryBuilder()
.add_sql_interception_with_date_range_condition(start_date, end_date)
Expand Down