Try to fix actions, fix broken test

pull/124/head
stijndcl 2022-07-27 21:49:58 +02:00
parent bdaf8a1dc5
commit 5f9a57cd83
3 changed files with 4 additions and 3 deletions

View File

@ -103,7 +103,7 @@ class GameStats(MongoCollection):
class WordleGame(MongoCollection):
"""Collection that holds people's active Wordle games"""
day: datetime.date = Field(default_factory=lambda: today_only_date())
day: datetime.datetime = Field(default_factory=lambda: today_only_date())
guesses: list[str] = Field(default_factory=list)
user_id: int

View File

@ -17,5 +17,6 @@ services:
- MONGO_INITDB_ROOT_USERNAME=pytest
- MONGO_INITDB_ROOT_PASSWORD=pytest
- MONGO_INITDB_DATABASE=didier_pytest
command: [--auth]
ports:
- "27018:27017"

View File

@ -30,10 +30,10 @@ A separate database is used in the tests, as it would obviously not be ideal whe
```shell
# Starting the database
docker-compose up -d db
docker compose up -d
# Starting the database used in tests
docker-compose up -d db-pytest
docker compose -f docker-compose.test.yml up -d
```
### Commands