mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
14 lines
457 B
Python
14 lines
457 B
Python
from django.test import TestCase
|
|
from .models import Conversation
|
|
|
|
class ConversationModelTest(TestCase):
|
|
def test_create_conversation(self):
|
|
conv = Conversation.objects.create(
|
|
name="Groupe Test",
|
|
conversation_type="group"
|
|
)
|
|
self.assertEqual(conv.name, "Groupe Test")
|
|
self.assertEqual(conv.conversation_type, "group")
|
|
self.assertTrue(conv.is_active)
|
|
self.assertIsNotNone(conv.id)
|