Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: TT-304 Handle message: the data could not be load
  • Loading branch information
Edgar Guaman committed Aug 12, 2021
commit 638717103ebb500e7775447a0d7bd0a122d02416
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_add_complementary_info_when_there_are_not_time_entries(
):
with pytest.raises(HTTPException) as http_error:
time_entry_repository.add_complementary_info(
time_entries=None, exist_conditions=False
time_entries=None, exist_conditions=True
)
status_code = http_error.value.code
message = http_error.value.data.get('message')
Expand Down
2 changes: 1 addition & 1 deletion time_tracker_api/time_entries/time_entries_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def add_complementary_info(

users = AzureConnection().users()
add_user_email_to_time_entries(time_entries, users)
elif not time_entries and not exist_conditions:
elif not time_entries and exist_conditions:
abort(HTTPStatus.NOT_FOUND, "Time entry not found")
return time_entries

Expand Down