import json
import os
import shutil
-import sys
import tempfile
from six.moves.urllib.parse import urljoin
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
NSMAP = {'libns': 'http://jumpgate.caltech.edu/wiki/LibraryOntology#'}
-from django.db import connection
-
class ExperimentsTestCases(TestCase):
def setUp(self):
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
# 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