summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/tests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 1a62dce4b..467c7d1e1 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -145,18 +145,19 @@ class FindInit(ContextRecordInit):
def tearDown(self):
super(FindInit, self).tearDown()
+ # nosec: quick and dirty cleanup do not care to catch exceptions
if hasattr(self, "finds"):
for f in self.finds:
try:
f.delete()
- except:
+ except: # nosec
pass
self.finds = []
if hasattr(self, "base_finds"):
for f in self.base_finds:
try:
f.delete()
- except:
+ except: # nosec
pass
self.base_find = []
@@ -1700,7 +1701,8 @@ class FindPermissionTest(FindInit, TestCase):
self.alt_user.user_permissions.add(
Permission.objects.get(codename="change_own_find", content_type=ct_find)
)
- self.alt_username2, self.alt_password2, self.alt_user2 = create_user(
+ # nosec: hard coded password for test purposes
+ self.alt_username2, self.alt_password2, self.alt_user2 = create_user( # nosec
username="luke", password="iamyourfather"
)
profile = UserProfile.objects.create(