Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unicode_literals future import #215

Merged
merged 2 commits into from Jun 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions django_nose/__init__.py
@@ -1,3 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals

VERSION = (1, 4, 0)
__version__ = '.'.join(map(str, VERSION))

Expand Down
3 changes: 3 additions & 0 deletions django_nose/management/commands/test.py
@@ -1,7 +1,10 @@
# coding: utf-8
"""
Add extra options from the test runner to the ``test`` command, so that you can
browse all the nose options from the command line.
"""
from __future__ import unicode_literals

from django.conf import settings
from django.test.utils import get_runner

Expand Down
3 changes: 3 additions & 0 deletions django_nose/plugin.py
@@ -1,3 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals

import sys

from nose.plugins.base import Plugin
Expand Down
5 changes: 3 additions & 2 deletions django_nose/runner.py
@@ -1,3 +1,4 @@
# coding: utf-8
"""Django test runner that invokes nose.

You can use... ::
Expand All @@ -7,7 +8,7 @@
in settings.py for arguments that you want always passed to nose.

"""
from __future__ import print_function
from __future__ import print_function, unicode_literals
import os
import sys
from optparse import make_option
Expand All @@ -25,7 +26,7 @@
from django.db.backends.base.creation import BaseDatabaseCreation
except ImportError:
# Django < 1.7
from django.db.backends.creation import BaseDatabaseCreation
from django.db.backends.creation import BaseDatabaseCreation

try:
from importlib import import_module
Expand Down
3 changes: 3 additions & 0 deletions django_nose/testcases.py
@@ -1,3 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals

from django import test
from django.conf import settings
from django.core import cache, mail
Expand Down
3 changes: 3 additions & 0 deletions django_nose/tools.py
@@ -1,9 +1,12 @@
# coding: utf-8
# vim: tabstop=4 expandtab autoindent shiftwidth=4 fileencoding=utf-8

"""
Provides Nose and Django test case assert functions
"""

from __future__ import unicode_literals

from django.test.testcases import TransactionTestCase

from django.core import mail
Expand Down
4 changes: 4 additions & 0 deletions django_nose/utils.py
@@ -1,3 +1,7 @@
# coding: utf-8
from __future__ import unicode_literals


def process_tests(suite, process):
"""Given a nested disaster of [Lazy]Suites, traverse to the first level
that has setup or teardown, and do something to them.
Expand Down