1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/loot/tests.py
2021-09-24 22:27:04 +02:00

13 lines
364 B
Python

from django_tenants.test.cases import TenantTestCase
# Create your tests here.
from loot.models import Loot
class LootTests(TenantTestCase):
@classmethod
def setUpTestData(cls):
cls.some_loot = Loot.objects.create(name="Torches", quantity=2, value_gold=0.2)
def test_loot(self):
self.assertEqual(self.some_loot.value_per_unit, 0.1)