Skip to content

Commit

Permalink
Fix pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Feb 12, 2019
1 parent 6d53033 commit 512050a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion small_small_hr/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.utils.translation import ugettext as _


def send_email( # pylint: disable=too-many-locals
def send_email( # pylint: disable=too-many-arguments, too-many-locals
name: str, email: str, subject: str, message: str, obj: object = None,
cc_list: list = None, template: str = 'generic'):
"""
Expand Down
2 changes: 2 additions & 0 deletions tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ def test_leave_oversubscribe_off(self, mock):
"""
Test leave oversubscribe when SSHR_ALLOW_OVERSUBSCRIBE is False
"""
mock.return_value = None

user = mommy.make('auth.User', first_name='Bob', last_name='Ndoe')
staffprofile = mommy.make('small_small_hr.StaffProfile', user=user)
staffprofile.leave_days = 21
Expand Down

0 comments on commit 512050a

Please sign in to comment.