Fakultas Ilmu Komputer UI

Commit be764d62 authored by Muhammad Fauzan Fikri's avatar Muhammad Fauzan Fikri
Browse files

buat test untuk mengecek bahwa toefl valid

parent 672b57e5
Pipeline #26537 failed with stages
in 5 minutes and 2 seconds
......@@ -394,6 +394,11 @@ class ProfileUpdateTests(APITestCase):
response = self.client.patch(url, {'GPA': "this is not a valid input"}, format='multipart')
self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED)
url = '/api/students/' + str(student_id) + "/profile/"
response = self.client.patch(url, {'TOEFL': 500}, format='multipart')
self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED)
self.assertEqual(response.data.get('student_toefl'), 500)
url = '/api/students/' + str(student_id) + '/profile/'
response = self.client.patch(url, {'volunteer': 'Ketua BEM UI - 2020'}, format='multipart')
self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED)
......
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