Update super function argument
Change first parameters in in Supervisor and Director subclassespull/690/head^2
parent
7a094cec63
commit
485bfc2adb
|
@ -53,7 +53,7 @@ class Operator(Employee):
|
||||||
class Supervisor(Employee):
|
class Supervisor(Employee):
|
||||||
|
|
||||||
def __init__(self, employee_id, name):
|
def __init__(self, employee_id, name):
|
||||||
super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)
|
super(Supervisor, self).__init__(employee_id, name, Rank.SUPERVISOR)
|
||||||
|
|
||||||
def escalate_call(self):
|
def escalate_call(self):
|
||||||
self.call.level = Rank.DIRECTOR
|
self.call.level = Rank.DIRECTOR
|
||||||
|
@ -63,7 +63,7 @@ class Supervisor(Employee):
|
||||||
class Director(Employee):
|
class Director(Employee):
|
||||||
|
|
||||||
def __init__(self, employee_id, name):
|
def __init__(self, employee_id, name):
|
||||||
super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)
|
super(Director, self).__init__(employee_id, name, Rank.DIRECTOR)
|
||||||
|
|
||||||
def escalate_call(self):
|
def escalate_call(self):
|
||||||
raise NotImplementedError('Directors must be able to handle any call')
|
raise NotImplementedError('Directors must be able to handle any call')
|
||||||
|
|
Loading…
Reference in New Issue