mirror of
https://github.com/Findus23/RPGnotes.git
synced 2024-09-20 16:53:44 +02:00
13 lines
364 B
Python
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)
|