From: Diane Trout Date: Tue, 5 May 2015 22:02:55 +0000 (-0700) Subject: Remove unused imports X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=4416453d9883f1b4dc27759c85d7d8b4d6e1468f Remove unused imports --- diff --git a/experiments/test_experiments.py b/experiments/test_experiments.py index 4084a42..e3c923c 100644 --- a/experiments/test_experiments.py +++ b/experiments/test_experiments.py @@ -5,7 +5,6 @@ from lxml.html import fromstring import json import os import shutil -import sys import tempfile from six.moves.urllib.parse import urljoin @@ -13,16 +12,12 @@ from django.conf import settings from django.core import mail from django.core.exceptions import ObjectDoesNotExist from django.test import TestCase -from django.test.utils import setup_test_environment, teardown_test_environment -from django.db import connection -from django.conf import settings from django.utils.encoding import smart_text -from .models import ClusterStation, cluster_station_default, \ - DataRun, Sequencer, FlowCell, FileType +from .models import DataRun, Sequencer, FlowCell, FileType from samples.models import HTSUser from .experiments import flowcell_information, lanes_for -from .experiments_factory import ClusterStationFactory, FlowCellFactory, LaneFactory +from .experiments_factory import FlowCellFactory, LaneFactory from samples.samples_factory import AffiliationFactory, HTSUserFactory, \ LibraryFactory, LibraryTypeFactory, MultiplexIndexFactory from htsworkflow.auth import apidata @@ -34,8 +29,6 @@ LANE_SET = range(1, 9) NSMAP = {'libns': 'http://jumpgate.caltech.edu/wiki/LibraryOntology#'} -from django.db import connection - class ExperimentsTestCases(TestCase): def setUp(self): diff --git a/samples/models.py b/samples/models.py index c61c0d2..3c0e7b0 100644 --- a/samples/models.py +++ b/samples/models.py @@ -1,11 +1,10 @@ from __future__ import unicode_literals -import types import logging from django.db import models -from django.contrib.auth.models import User, UserManager +from django.contrib.auth.models import User from django.core import urlresolvers -from django.db.models.signals import pre_save, post_save +from django.db.models.signals import post_save from django.db import connection import six diff --git a/samples/views.py b/samples/views.py index 050c2a5..e173b08 100644 --- a/samples/views.py +++ b/samples/views.py @@ -3,29 +3,23 @@ from __future__ import absolute_import, print_function, unicode_literals # Create your views here. import logging import os -import sys - import json from django.views.decorators.csrf import csrf_exempt -from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.template.loader import get_template from django.contrib.auth.decorators import login_required -from django.conf import settings from htsworkflow.auth import require_api_key -from experiments.models import FlowCell, Lane, LANE_STATUS_MAP -from experiments.admin import LaneOptions +from experiments.models import FlowCell, LANE_STATUS_MAP from .changelist import HTSChangeList -from .models import Antibody, Library, Species, HTSUser +from .models import Antibody, Library, Species from .admin import LibraryOptions from .results import get_flowcell_result_dict from bcmagic.forms import BarcodeMagicForm from htsworkflow.pipelines import runfolder -from htsworkflow.pipelines.eland import ResultLane from htsworkflow.pipelines.samplekey import SampleKey from htsworkflow.util.conversion import str_or_none, parse_flowcell_id from htsworkflow.util import makebed