Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kape
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PMPL
Class Project
Kape
Commits
41c65d90
Commit
41c65d90
authored
8 years ago
by
M. Reza Qorib
Browse files
Options
Downloads
Patches
Plain Diff
Correcting faulty merge conflict. Bismillah
parent
3f7fc64b
Branches
Features/HomeDosen
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/tests/test_vacancies.py
+7
-4
7 additions, 4 deletions
core/tests/test_vacancies.py
core/views/vacancies.py
+1
-1
1 addition, 1 deletion
core/views/vacancies.py
with
8 additions
and
5 deletions
core/tests/test_vacancies.py
+
7
−
4
View file @
41c65d90
...
...
@@ -190,10 +190,6 @@ class CompanyListsTests(APITestCase):
class
SupervisorStudentApplicationTests
(
APITestCase
):
def
test_list_student_application
(
self
):
class
SupervisorApprovalTests
(
APITestCase
):
def
test_supervisor_approve_vacancy
(
self
):
new_user
=
User
.
objects
.
create_user
(
'
dummy.supervisor
'
,
'
dummy.supervisor@asd.asd
'
,
'
lalala123
'
)
new_supervisor
=
Supervisor
.
objects
.
create
(
user
=
new_user
,
nip
=
1212121212
)
self
.
client
.
force_authenticate
(
user
=
new_user
)
...
...
@@ -210,6 +206,13 @@ class SupervisorApprovalTests(APITestCase):
response
=
self
.
client
.
get
(
url
,
format
=
'
json
'
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_403_FORBIDDEN
)
class
SupervisorApprovalTests
(
APITestCase
):
def
test_supervisor_approve_vacancy
(
self
):
new_user
=
User
.
objects
.
create_user
(
'
dummy.supervisor
'
,
'
dummy.supervisor@asd.asd
'
,
'
lalala123
'
)
new_supervisor
=
Supervisor
.
objects
.
create
(
user
=
new_user
,
nip
=
1212121212
)
self
.
client
.
force_authenticate
(
user
=
new_user
)
new_user2
=
User
.
objects
.
create_user
(
'
dummy.company2
'
,
'
dummy.compan2y@company.com
'
,
'
lalala123
'
)
new_company2
=
Company
.
objects
.
create
(
user
=
new_user2
,
description
=
"
lalala
"
,
status
=
Company
.
VERIFIED
,
logo
=
None
,
address
=
None
)
...
...
This diff is collapsed.
Click to expand it.
core/views/vacancies.py
+
1
−
1
View file @
41c65d90
...
...
@@ -12,7 +12,7 @@ from core.lib.permissions import IsAdminOrStudent, IsAdminOrCompany, IsAdminOrVa
from
core.models
import
Student
,
Company
from
core.models.vacancies
import
Vacancy
,
Application
from
core.serializers.vacancies
import
VacancySerializer
,
ApplicationSerializer
,
ApplicationStatusSerializer
,
\
VacancyApplicationSerializer
,
PostVacancySerializer
,
VacancyVerifiedSerializer
VacancyApplicationSerializer
,
PostVacancySerializer
,
VacancyVerifiedSerializer
,
SupervisorStudentApplicationSerializer
class
VacancyViewSet
(
MultiSerializerViewSetMixin
,
viewsets
.
ModelViewSet
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment