17 lines
430 B
Python
Executable File
17 lines
430 B
Python
Executable File
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
|