Fakultas Ilmu Komputer UI

Commit 4618bc5c authored by BIMO IMAN SMARTADI's avatar BIMO IMAN SMARTADI
Browse files

[GREEN]Edited test after refactor

parent bbddb289
Pipeline #35874 passed with stage
in 1 minute and 56 seconds
from django.test import TestCase
from .models import User
from .models import BisaGoUser
class RegistrationTest(TestCase):
def test_user_model_created(self):
User.objects.create(name='user',phone_number='081278787878',email='user@gmail.com', password='hahagotim')
count = User.objects.all().count()
BisaGoUser.objects.create(name='user',phone_number='081278787878',email='user@gmail.com', password='hahagotim')
count = BisaGoUser.objects.all().count()
self.assertNotEqual(count,0)
def test_user_model_not_created(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment