membersystem/parked_apps/accounting/tests.py
Mikkel Munch Mortensen 7f01d9a277
Rip out existing custom apps
And move the to "parked_apps" directory, until we've decided what we
want to do with them.
2021-02-09 22:00:55 +01:00

16 lines
326 B
Python

import pytest
from django.contrib.auth.models import User
from . import models
# @pytest.fixture
# def test():
# do stuff
@pytest.mark.django_db
def test_balance():
user = User.objects.create_user("test", "lala@adas.com", "1234")
account = models.Account.objects.create(owner=user)
assert account.balance == 0