Fix import order for cron/, scripts/ and test/

This commit is contained in:
Nicola Soranzo
2017-09-25 23:44:39 +01:00
committed by Nicola Soranzo
parent 8c984c9b3e
commit 9b1832abb1
78 changed files with 205 additions and 373 deletions
+9 -14
View File
@@ -8,31 +8,26 @@ import os
import time
import traceback
import unittest
from functools import partial, wraps
import requests
from galaxy_selenium import (
driver_factory,
)
from galaxy_selenium.navigates_galaxy import NavigatesGalaxy, retry_during_transitions
try:
from pyvirtualdisplay import Display
except ImportError:
Display = None
from six.moves.urllib.parse import urljoin
from base import populators
from base.driver_util import classproperty, DEFAULT_WEB_HOST, get_ip_address
from base.testcase import FunctionalTestCase
from base.workflows_format_2 import (
ImporterGalaxyInterface,
from base import populators # noqa: I100
from base.driver_util import classproperty, DEFAULT_WEB_HOST, get_ip_address # noqa: I100
from base.testcase import FunctionalTestCase # noqa: I100
from base.workflows_format_2 import ( # noqa: I100
convert_and_import_workflow,
ImporterGalaxyInterface,
)
from galaxy_selenium import ( # noqa: I100
driver_factory,
)
from galaxy_selenium.navigates_galaxy import NavigatesGalaxy, retry_during_transitions # noqa: I100
from galaxy.util import asbool
DEFAULT_WAIT_TIMEOUT = 60
+4 -2
View File
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class AnonymousHistoriesTestCase(SeleniumTestCase):
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class CollectionBuildersTestCase(SeleniumTestCase):
@@ -1,6 +1,6 @@
from .framework import (
SeleniumTestCase,
selenium_test,
SeleniumTestCase,
UsesHistoryItemAssertions,
)
+4 -2
View File
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class HistoryOptionsTestCase(SeleniumTestCase):
+4 -2
View File
@@ -1,7 +1,9 @@
import time
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class HistoryPanelTestCase(SeleniumTestCase):
+4 -2
View File
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
# Remove hack when submit_login works more consistently.
VALID_LOGIN_RETRIES = 3
+4 -2
View File
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class LoginTestCase(SeleniumTestCase):
+4 -2
View File
@@ -1,5 +1,7 @@
from .framework import SeleniumTestCase
from .framework import selenium_test
from .framework import (
selenium_test,
SeleniumTestCase
)
class SizzleLoadingTestCase(SeleniumTestCase):
+5 -3
View File
@@ -1,10 +1,12 @@
import os
from .framework import SeleniumTestCase
from .framework import selenium_test
from galaxy.util import galaxy_root_path
from .framework import (
selenium_test,
SeleniumTestCase
)
STOCK_TOURS_DIRECTORY = os.path.join(galaxy_root_path, "config", "plugins", "tours")
+3 -3
View File
@@ -1,11 +1,11 @@
from galaxy_selenium.navigates_galaxy import retry_call_during_transitions
from .framework import (
SeleniumTestCase,
selenium_test,
SeleniumTestCase,
UsesHistoryItemAssertions,
)
from galaxy_selenium.navigates_galaxy import retry_call_during_transitions
class ToolFormTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
+1 -1
View File
@@ -1,6 +1,6 @@
from .framework import (
SeleniumTestCase,
selenium_test,
SeleniumTestCase,
UsesHistoryItemAssertions,
)
+5 -6
View File
@@ -1,17 +1,16 @@
import time
from ._workflow_fixtures import (
WORKFLOW_SIMPLE_CAT_TWICE,
WORKFLOW_WITH_INVALID_STATE,
WORKFLOW_WITH_OLD_TOOL_VERSION,
)
from .framework import (
retry_assertion_during_transitions,
selenium_test,
SeleniumTestCase
)
from ._workflow_fixtures import (
WORKFLOW_SIMPLE_CAT_TWICE,
WORKFLOW_WITH_OLD_TOOL_VERSION,
WORKFLOW_WITH_INVALID_STATE,
)
class WorkflowEditorTestCase(SeleniumTestCase):
+5 -6
View File
@@ -1,15 +1,14 @@
import time
from .framework import (
selenium_test,
SeleniumTestCase,
UsesHistoryItemAssertions,
)
from ._workflow_fixtures import (
WORKFLOW_SIMPLE_CAT_TWICE,
WORKFLOW_WITH_OLD_TOOL_VERSION,
)
from .framework import (
selenium_test,
SeleniumTestCase,
UsesHistoryItemAssertions,
)
class WorkflowRunTestCase(SeleniumTestCase, UsesHistoryItemAssertions):