Fakultas Ilmu Komputer UI

Commit 702375cb authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[CHORES] Limit AcaraDonorFactory phone number (2)

parent 56c7b8f3
Pipeline #49065 passed with stages
in 2 minutes
......@@ -24,7 +24,7 @@ class AcaraDonorFactory(factory.DjangoModelFactory):
nama_koor = factory.Faker('name', locale=LOCALE)
email_koor = factory.Faker('free_email', locale=LOCALE)
no_telp_koor = factory.Faker('phone_number')
no_telp_koor = factory.Sequence(lambda n: '021-1128-%04d' % n)
kategori = factory.LazyAttribute(lambda _:
choice(JadwalDonor.Category.choices)[0])
......
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