From 1be17e6ea31a096ab905bfeaeaebde1b5eb6c1d3 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 08:53:23 +0000 Subject: [PATCH] refactor: remove unused imports An object has been imported but is not used anywhere in the file. It should either be used or the import should be removed. --- NearBeach/tests/tests_specific_bugs/test_new_instance.py | 1 - NearBeach/views/document_views.py | 5 +---- NearBeach/views/object_data_views.py | 2 -- NearBeach/views/theme_views.py | 2 -- NearBeach/views/tools/internal_functions.py | 5 ----- 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/NearBeach/tests/tests_specific_bugs/test_new_instance.py b/NearBeach/tests/tests_specific_bugs/test_new_instance.py index d92846b4a..36a053630 100644 --- a/NearBeach/tests/tests_specific_bugs/test_new_instance.py +++ b/NearBeach/tests/tests_specific_bugs/test_new_instance.py @@ -1,6 +1,5 @@ from django.test import TestCase, Client from django.urls import reverse -import pdb # Declaration of Username and Password username = "admin" diff --git a/NearBeach/views/document_views.py b/NearBeach/views/document_views.py index d77a19819..f97d45c30 100644 --- a/NearBeach/views/document_views.py +++ b/NearBeach/views/document_views.py @@ -29,13 +29,10 @@ RequirementItem, ) from ..models import DocumentPermission, UserGroup, ObjectAssignment, UserProfilePicture - -from azure.identity import DefaultAzureCredential -from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient +from azure.storage.blob import BlobServiceClient import boto3 import json -import os from pathlib import Path diff --git a/NearBeach/views/object_data_views.py b/NearBeach/views/object_data_views.py index 45b35d4af..228968e6f 100644 --- a/NearBeach/views/object_data_views.py +++ b/NearBeach/views/object_data_views.py @@ -19,8 +19,6 @@ Customer, Group, KanbanCard, - ListOfRequirementItemStatus, - ListOfRequirementStatus, ObjectAssignment, ObjectNote, Organisation, diff --git a/NearBeach/views/theme_views.py b/NearBeach/views/theme_views.py index cc9163040..d2f93a6ab 100644 --- a/NearBeach/views/theme_views.py +++ b/NearBeach/views/theme_views.py @@ -1,6 +1,4 @@ -from NearBeach.forms import UserSettingsForm from NearBeach.models import UserSetting -from NearBeach.views.user_setting_views import update_user_settings # Internal function diff --git a/NearBeach/views/tools/internal_functions.py b/NearBeach/views/tools/internal_functions.py index 317061852..cc42ca137 100644 --- a/NearBeach/views/tools/internal_functions.py +++ b/NearBeach/views/tools/internal_functions.py @@ -3,9 +3,6 @@ Customer, KanbanBoard, KanbanCard, - ListOfRequirementItemStatus, - ListOfRequirementStatus, - ObjectAssignment, Organisation, Project, RequestForChange, @@ -16,8 +13,6 @@ UserGroup, ) -from django.db.models import Q - OBJECT_DICT = { "change_task": ChangeTask.objects, "customer": Customer.objects,