17 lines
399 B
Python
17 lines
399 B
Python
import pytest_asyncio
|
|
|
|
from fooder.domain.user_settings import UserSettings
|
|
|
|
|
|
@pytest_asyncio.fixture
|
|
async def user_settings(ctx, user):
|
|
settings = UserSettings(
|
|
user_id=user.id,
|
|
protein_goal=150.0,
|
|
carb_goal=200.0,
|
|
fat_goal=70.0,
|
|
fiber_goal=30.0,
|
|
calories_goal=2000.0,
|
|
)
|
|
await ctx.repo.user_settings.create(settings)
|
|
return settings
|