ran python-modernize and isort on files mentioned in INCR-391
changes made to comply with quality ran python-modernize and isort on files mentioned in INCR-391
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
"""Unit tests for the Paver asset tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
from unittest import TestCase
|
||||
|
||||
import ddt
|
||||
import paver.tasks
|
||||
from mock import patch
|
||||
from paver.easy import call_task, path
|
||||
import paver.tasks
|
||||
from watchdog.observers import Observer
|
||||
|
||||
from pavelib.assets import COLLECTSTATIC_LOG_DIR_ARG, collect_assets
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
This test tests that i18n extraction (`paver i18n_extract -v`) works properly.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
|
||||
@@ -3,6 +3,7 @@ Tests for pavelib/i18n.py.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import textwrap
|
||||
import unittest
|
||||
@@ -14,7 +15,6 @@ import pavelib.i18n
|
||||
from pavelib.paver_tests.utils import PaverTestCase
|
||||
from pavelib.utils.envs import Env
|
||||
|
||||
|
||||
TX_CONFIG_SIMPLE = """\
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
@@ -32,8 +32,6 @@ source_lang = en
|
||||
type = PO
|
||||
|
||||
"""
|
||||
|
||||
# This isn't HTML.
|
||||
# xss-lint: disable=python-concat-html
|
||||
TX_CONFIG_RELEASE = TX_CONFIG_SIMPLE + """\
|
||||
[edx-platform.release-zebrawood]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Unit tests for the Paver JavaScript testing tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ddt
|
||||
from mock import patch
|
||||
from paver.easy import call_task
|
||||
|
||||
@@ -3,6 +3,7 @@ Tests for the bok-choy paver commands themselves.
|
||||
Run just this test with: paver test_lib -t pavelib/paver_tests/test_paver_bok_choy_cmds.py
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import unittest
|
||||
from test.test_support import EnvironmentVarGuard
|
||||
|
||||
@@ -4,13 +4,14 @@ Tests for the pytest paver commands themselves.
|
||||
Run just this test with: paver test_lib -t pavelib/paver_tests/test_paver_pytest_cmds.py
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
import unittest
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
import ddt
|
||||
|
||||
from pavelib.utils.test.suites import SystemTestSuite, LibTestSuite
|
||||
from pavelib.utils.envs import Env
|
||||
|
||||
from pavelib.utils.test.suites import LibTestSuite, SystemTestSuite
|
||||
|
||||
XDIST_TESTING_IP_ADDRESS_LIST = '0.0.0.1,0.0.0.2,0.0.0.3'
|
||||
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
"""
|
||||
Tests for paver quality tasks
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
import textwrap
|
||||
import unittest
|
||||
|
||||
from ddt import ddt, file_data, data, unpack
|
||||
from ddt import data, ddt, file_data, unpack
|
||||
from mock import MagicMock, mock_open, patch
|
||||
from path import Path as path
|
||||
from paver.easy import BuildFailure
|
||||
|
||||
import pavelib.quality
|
||||
from pavelib.paver_tests.utils import fail_on_eslint
|
||||
from pavelib.paver_tests.utils import PaverTestCase
|
||||
from pavelib.paver_tests.utils import PaverTestCase, fail_on_eslint
|
||||
|
||||
|
||||
@ddt
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Unit tests for the Paver server tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ddt
|
||||
from paver.easy import call_task
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Tests for Paver's Stylelint tasks.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ddt
|
||||
from mock import MagicMock, patch
|
||||
from paver.easy import call_task
|
||||
|
||||
Reference in New Issue
Block a user