Skip to content

Commit

Permalink
Merge pull request #10 from aitormagan/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aitormagan authored Jul 8, 2021
2 parents bd9e19f + 0e1ebd4 commit 6d9dab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/message_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def handle_update(update):
elif message == "/subscribe":
answer = handle_subscribe(update)
elif message == "/mindate":
telegram_helpers.send_text(user_id, "⌛ Esto me puede llevar unos segunditos...")
answer = handle_min_date(update)
# telegram_helpers.send_text(user_id, "⌛ Esto me puede llevar unos segunditos...")
answer = "Perdoname 🙏, pero la Comunidad de Madrid ha cambiado el sistema para impedirme darte esta información 😓. Intentaremos solventar este escollo 😉."
else:
answer = handle_generic_message(update)
except Exception:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_message_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def test_given_min_date_when_handle_update_then_handle_min_date_called(handle_ge
}
})

telegram_helpers_mock.send_text.assert_any_call(user_id, handle_min_date_mock.return_value)
telegram_helpers_mock.send_text.assert_any_call(user_id, ANY)


@patch("src.message_handler.handle_min_date")
Expand Down Expand Up @@ -930,4 +930,4 @@ def test_given_0_month_modifier_when_get_spots_body_then_current_month_returned_
"anyo": 2021,
"horaInicio": "00:00",
"horaFin": "23:59"
}
}

0 comments on commit 6d9dab4

Please sign in to comment.