diff --git a/tests/test_file.py b/tests/test_file.py index f413dac98e0ba7eb49f2039a328523c0802684fa..2bf3eb0e02686e5a646fccae57802686273cc26f 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -26,16 +26,18 @@ @author: Timm Fitschen """ import os - import shutil -from lxml import etree -from sys import maxsize as maxint from random import randint +from sys import maxsize as maxint + +from caosdb import execute_query, get_config, get_connection from caosdb.common import models from caosdb.exceptions import EntityError -from caosdb import execute_query, get_config, get_connection from caosdb.utils.checkFileSystemConsistency import runCheck -from nose.tools import assert_is_not_none, assert_true, assert_false, assert_equals, assert_raises, with_setup, nottest # @UnresolvedImport +from lxml import etree +from nose.tools import (assert_equals, assert_false, # @UnresolvedImport + assert_is_not_none, assert_raises, assert_true, + nottest, with_setup) def setup_module(): @@ -237,6 +239,7 @@ def test_file6(): d = models.DropOffBox() d.sync() path = d.path + "/testfolder" + if not os.path.isdir(d.path): print("drop off box not on this system.") else: @@ -293,6 +296,7 @@ def test_file7(): d = models.DropOffBox() d.sync() path = d.path + "/testfolder" + if not os.path.isdir(d.path): print("drop off box not on this system.") else: