Remove unused imports
authorDiane Trout <diane@ghic.org>
Tue, 5 May 2015 22:02:55 +0000 (15:02 -0700)
committerDiane Trout <diane@ghic.org>
Tue, 5 May 2015 22:06:35 +0000 (15:06 -0700)
experiments/test_experiments.py
samples/models.py
samples/views.py

index 4084a4223f07bd7dd0d0a2b5474d9889b8f39b9b..e3c923ca30c5d96b182f2644f58a739284343072 100644 (file)
@@ -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):
index c61c0d2adbd4048481bf6792cd5d2be270c7bbe6..3c0e7b07d64a5d96321abb362c742d5548f5cebb 100644 (file)
@@ -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
 
index 050c2a5d58b816e3c1b0e0fbd3ef683f58e19375..e173b08d5974f193ee7ea27fabbc545f4894973c 100644 (file)
@@ -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