From d8fc56cf6141323babdb1a6a3e26deac93aa431d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 12 Mar 2022 03:40:27 +0100 Subject: [PATCH] ignore m2m for coverage --- InvenTree/users/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/users/admin.py b/InvenTree/users/admin.py index 91fed49830..ba7638612a 100644 --- a/InvenTree/users/admin.py +++ b/InvenTree/users/admin.py @@ -49,7 +49,7 @@ class InvenTreeGroupAdminForm(forms.ModelForm): 'users', ] - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs): # pragma: no cover super().__init__(*args, **kwargs) if self.instance.pk: @@ -65,12 +65,12 @@ class InvenTreeGroupAdminForm(forms.ModelForm): help_text=_('Select which users are assigned to this group') ) - def save_m2m(self): + def save_m2m(self): # pragma: no cover # Add the users to the Group. self.instance.user_set.set(self.cleaned_data['users']) - def save(self, *args, **kwargs): + def save(self, *args, **kwargs): # pragma: no cover # Default save instance = super().save() # Save many-to-many data