Skip to content

Commit

Permalink
Raise NotImplementedError if a function is called which is not implem…
Browse files Browse the repository at this point in the history
…ented (#10)
  • Loading branch information
philipflohr authored Nov 24, 2020
1 parent 929ed26 commit f8907a8
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/personio_py/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ def update_employee(self, employee: Employee):
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def get_attendances(self, employees: Union[int, List[int], Employee, List[Employee]],
start_date: datetime = None, end_date: datetime = None) -> List[Attendance]:
Expand All @@ -296,22 +295,19 @@ def create_attendances(self, attendances: List[Attendance]):
"""
# attendances can be created individually, but here you can push a huge bunch of items
# in a single request, which can be significantly faster
# TODO implement
pass
raise NotImplementedError()

def update_attendance(self, attendance_id: int):
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def delete_attendance(self, attendance_id: int):
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def get_absence_types(self) -> List[AbsenceType]:
"""
Expand Down Expand Up @@ -349,22 +345,19 @@ def get_absence(self, absence_id: int) -> Absence:
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def create_absence(self, absence: Absence):
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def delete_absence(self, absence_id: int):
"""
placeholder; not ready to be used
"""
# TODO implement
pass
raise NotImplementedError()

def _get_employee_metadata(
self, path: str, resource_cls: Type[PersonioResourceType],
Expand Down

0 comments on commit f8907a8

Please sign in to comment.