mirror of https://github.com/stijndcl/didier
Try to fix actions, fix broken test
parent
bdaf8a1dc5
commit
5f9a57cd83
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue