diff --git a/core/tests/test_vacancies.py b/core/tests/test_vacancies.py index 518a075737076084da1b7dc2ac77346445822de7..82462ba5d6b7e4baefafd70d4c2a3259ebd25c66 100644 --- a/core/tests/test_vacancies.py +++ b/core/tests/test_vacancies.py @@ -24,7 +24,7 @@ class ApplicationTests(APITestCase): response = self.client.post(url, {'username': 'dummy.mahasiswa', 'password': 'lalala', 'login-type': 'sso-ui'}, format='json') student_id = response.data.get('student').get('id') - url = '/api/students/' + str(student_id) + '/applications/' + url = '/api/students/' + str(student_id) + '/applied-vacancies/' response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -51,11 +51,11 @@ class ApplicationTests(APITestCase): new_company = Company.objects.create(user=new_user, description="lalala",verified=True,logo=None,address=None) new_vacancy = Vacancy.objects.create(company=new_company, verified=True, open_time=datetime.fromtimestamp(0), description="lalala", close_time=datetime.today()) - url = '/api/students/' + str(student_id) + '/applications/' + url = '/api/students/' + str(student_id) + '/applied-vacancies/' response = self.client.post(url, {'vacancy_id' : new_vacancy.pk, 'cover_letter' : 'this is a cover letter.'}, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) - url = '/api/students/' + str(student_id) + '/applications/' + str(new_vacancy.pk) + '/' + url = '/api/students/' + str(student_id) + '/applied-vacancies/' + str(new_vacancy.pk) + '/' response = self.client.delete(url) self.assertEqual(response.status_code, status.HTTP_200_OK)