Project_Camper/vagus/camper/test.py

17 lines
430 B
Python
Raw Normal View History

2021-01-08 22:23:52 +01:00
from django.test import TestCase
# Create your tests here.
from .models import Offer, Image_offer, Offer_Category
class CreateOfferTest(TestCase):
def offer_create_test(self):
cat_id = Offer_Category.objects.get(name ='CamperVan').id
self.form_data ={
'title': 'Kamper',
'price': 213,
'category': cat_id,
}
def offer_image_create_test(self):
pass