mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
13 lines
408 B
Python
13 lines
408 B
Python
from django.test import TestCase
|
|
from .models import Profile
|
|
|
|
class ProfileModelTest(TestCase):
|
|
def test_create_profile(self):
|
|
user = Profile.objects.create_user(
|
|
username="testuser",
|
|
email="test@example.com",
|
|
password="testpass123"
|
|
)
|
|
self.assertEqual(user.email, "test@example.com")
|
|
self.assertTrue(user.check_password("testpass123"))
|