Convert what's left of pavelib.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Unit tests for the Paver asset tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
This test tests that i18n extraction (`paver i18n_extract -v`) works properly.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
@@ -13,6 +14,7 @@ from unittest import TestCase
|
||||
from i18n import config, dummy, extract, generate
|
||||
from polib import pofile
|
||||
from pytz import UTC
|
||||
from six.moves import range
|
||||
|
||||
|
||||
class TestGenerate(TestCase):
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Tests for pavelib/i18n.py.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import textwrap
|
||||
import unittest
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
"""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
|
||||
|
||||
@@ -2,6 +2,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
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Tests to ensure only the report files we want are returned as part of run_quality.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
import unittest
|
||||
|
||||
from mock import patch
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
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 ddt
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Tests for paver quality tasks
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Tests for Paver's PII checker task.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
import io
|
||||
import six
|
||||
from mock import patch
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
"""Unit tests for the Paver server tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import ddt
|
||||
from paver.easy import call_task
|
||||
|
||||
|
||||
@@ -1,6 +1,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
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Tests for pavelib/utils/test/utils
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import unittest
|
||||
|
||||
from mock import patch
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Tests for paver xsscommitlint quality tasks
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from mock import patch
|
||||
from paver.easy import call_task
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Tests for paver xsslint quality tasks
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from mock import patch
|
||||
from paver.easy import call_task
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
"""Unit tests for the Paver server tasks."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
from unittest import TestCase
|
||||
from uuid import uuid4
|
||||
|
||||
from paver import tasks
|
||||
from paver.easy import BuildFailure
|
||||
import six
|
||||
|
||||
|
||||
class PaverTestCase(TestCase):
|
||||
@@ -60,7 +62,7 @@ class MockEnvironment(tasks.Environment):
|
||||
else:
|
||||
output = message
|
||||
if not output.startswith("--->"):
|
||||
self.messages.append(unicode(output))
|
||||
self.messages.append(six.text_type(output))
|
||||
|
||||
|
||||
def fail_on_eslint(*args, **kwargs):
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Utility methods for bokchoy database manipulation.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import tarfile
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Tools for timing paver tasks
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user