Skip to content

Commit ac06aab

Browse files
fix: TT-304 Handle message: the data could not be load (#316)
Authored-by: Edgar Guaman <[email protected]>
1 parent 3cac470 commit ac06aab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/time_tracker_api/time_entries/time_entries_repository_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_add_complementary_info_when_there_are_not_time_entries(
9595
):
9696
with pytest.raises(HTTPException) as http_error:
9797
time_entry_repository.add_complementary_info(
98-
time_entries=None, exist_conditions=False
98+
time_entries=None, exist_conditions=True
9999
)
100100
status_code = http_error.value.code
101101
message = http_error.value.data.get('message')

time_tracker_api/time_entries/time_entries_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def add_complementary_info(
120120

121121
users = AzureConnection().users()
122122
add_user_email_to_time_entries(time_entries, users)
123-
elif not time_entries and not exist_conditions:
123+
elif not time_entries and exist_conditions:
124124
abort(HTTPStatus.NOT_FOUND, "Time entry not found")
125125
return time_entries
126126

0 commit comments

Comments
 (0)