Fakultas Ilmu Komputer UI

Verified Commit f87d5847 authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[REFACTOR] Update MarriedStatus enums

parent 48dc6c0b
Pipeline #43583 passed with stages
in 10 minutes and 48 seconds
......@@ -60,8 +60,10 @@ class Sex(models.TextChoices):
class MarriedStatus(models.TextChoices):
SINGLE = 'S', _('Single')
MARRIED = 'M', _('Married')
BELUM_KAWIN = 'BK', _('Belum Kawin')
KAWIN = 'KW', _('Kawin')
CERAI_HIDUP = 'CH', _('Cerai Hidup')
CERAI_MATI = 'CM', _('Cerai Mati')
class Profile(models.Model):
......
......@@ -81,7 +81,7 @@ class ProfileTests(TestCase):
sex=Sex.MALE,
profession='Vampire',
blood_type='O+',
married_status=MarriedStatus.SINGLE,
married_status=MarriedStatus.BELUM_KAWIN,
address='Jl MH Thamrin Kav 28-30 EX Lt 2 K-11, Gondangdia',
city='Jakarta Selatan',
district='Menteng',
......@@ -93,7 +93,7 @@ class ProfileTests(TestCase):
)
self.assertEqual(profile.sex, Sex.MALE)
self.assertEqual(profile.married_status, MarriedStatus.SINGLE)
self.assertEqual(profile.married_status, MarriedStatus.BELUM_KAWIN)
def test_profile_on_user_creation(self):
user = User.objects.create_user('donald@duckduckgo.org')
......
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