mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Send daily birthday notifications, add more settings & configs, fix small bugs in database
This commit is contained in:
parent
393cc9c891
commit
da0e60ac4f
8 changed files with 105 additions and 12 deletions
|
|
@ -52,7 +52,7 @@ async def test_get_birthday_not_exists(database_session: AsyncSession, user: Use
|
|||
@freeze_time("2022/07/23")
|
||||
async def test_get_birthdays_on_day(database_session: AsyncSession, user: User):
|
||||
"""Test getting all birthdays on a given day"""
|
||||
await crud.add_birthday(database_session, user.user_id, datetime.today())
|
||||
await crud.add_birthday(database_session, user.user_id, datetime.today().replace(year=2001))
|
||||
|
||||
user_2 = await users.get_or_add(database_session, user.user_id + 1)
|
||||
await crud.add_birthday(database_session, user_2.user_id, datetime.today() + timedelta(weeks=1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue