dropped python 2.7 compat code from tests

This commit is contained in:
Asif Saif Uddin 2018-10-25 13:22:01 +06:00
parent 0aa2958ea0
commit 7e87449077
38 changed files with 0 additions and 87 deletions

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import uuid import uuid
from django.db import models from django.db import models

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import os import os
import tempfile import tempfile
import unittest import unittest

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import unittest import unittest
from django.conf.urls import url from django.conf.urls import url

View File

@ -1,7 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import base64 import base64
import pytest import pytest

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import pytest import pytest
from django.test import TestCase from django.test import TestCase

View File

@ -1,7 +1,3 @@
# -- coding: utf-8 --
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from django.utils.encoding import python_2_unicode_compatible from django.utils.encoding import python_2_unicode_compatible

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import RequestFactory, TestCase from django.test import RequestFactory, TestCase
from django.utils import six, translation from django.utils import six, translation
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import datetime import datetime
import pytest import pytest

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import pytest import pytest
from django.db import models from django.db import models
from django.http import Http404 from django.http import Http404

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import django.template.loader import django.template.loader
import pytest import pytest
from django.conf.urls import url from django.conf.urls import url

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import pytest import pytest
from django.core.validators import MaxValueValidator, MinValueValidator from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models from django.db import models

View File

@ -5,8 +5,6 @@ shortcuts for automatically creating serializers based on a given model class.
These tests deal with ensuring that we correctly map the model fields onto These tests deal with ensuring that we correctly map the model fields onto
an appropriate set of serializer fields for each case. an appropriate set of serializer fields for each case.
""" """
from __future__ import unicode_literals
import datetime import datetime
import decimal import decimal
import sys import sys

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.db import models from django.db import models
from django.test import TestCase from django.test import TestCase

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import pytest import pytest
from django.http import Http404 from django.http import Http404
from django.test import TestCase from django.test import TestCase

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.db import models from django.db import models
from django.test import TestCase from django.test import TestCase

View File

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import pytest import pytest
from django.core.paginator import Paginator as DjangoPaginator from django.core.paginator import Paginator as DjangoPaginator
from django.db import models from django.db import models

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import io import io
import math import math

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import base64 import base64
import unittest import unittest
import warnings import warnings

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.contrib.contenttypes.fields import ( from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation GenericForeignKey, GenericRelation
) )

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.conf.urls import url from django.conf.urls import url
from django.test import TestCase, override_settings from django.test import TestCase, override_settings

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from django.utils import six from django.utils import six

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re import re
from collections import MutableMapping, OrderedDict from collections import MutableMapping, OrderedDict

View File

@ -1,8 +1,6 @@
""" """
Tests for content parsing, and form-overloaded content parsing. Tests for content parsing, and form-overloaded content parsing.
""" """
from __future__ import unicode_literals
import os.path import os.path
import tempfile import tempfile

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import unittest import unittest
from django.conf.urls import url from django.conf.urls import url

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.conf.urls import include, url from django.conf.urls import include, url
from django.test import TestCase, override_settings from django.test import TestCase, override_settings
from django.utils import six from django.utils import six

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.conf.urls import url from django.conf.urls import url
from django.test import TestCase, override_settings from django.test import TestCase, override_settings
from django.urls import NoReverseMatch from django.urls import NoReverseMatch

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import warnings import warnings
from collections import namedtuple from collections import namedtuple

View File

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import inspect import inspect
import pickle import pickle
import re import re

View File

@ -1,8 +1,6 @@
""" """
Tests to cover bulk create and update using serializers. Tests to cover bulk create and update using serializers.
""" """
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from django.utils import six from django.utils import six

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.test import TestCase, override_settings from django.test import TestCase, override_settings
from rest_framework.settings import APISettings, api_settings from rest_framework.settings import APISettings, api_settings

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from rest_framework.status import ( from rest_framework.status import (

View File

@ -1,6 +1,3 @@
# encoding: utf-8
from __future__ import unicode_literals
import unittest import unittest
from django.template import Context, Template from django.template import Context, Template

View File

@ -1,6 +1,3 @@
# encoding: utf-8
from __future__ import unicode_literals
from io import BytesIO from io import BytesIO
from django.conf.urls import url from django.conf.urls import url

View File

@ -1,7 +1,6 @@
""" """
Tests for the throttling implementations in the permissions module. Tests for the throttling implementations in the permissions module.
""" """
from __future__ import unicode_literals
import pytest import pytest
from django.contrib.auth.models import User from django.contrib.auth.models import User

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import unittest import unittest
from collections import namedtuple from collections import namedtuple

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import url from django.conf.urls import url
from django.test import TestCase, override_settings from django.test import TestCase, override_settings

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import re import re
from django.core.validators import MaxValueValidator, RegexValidator from django.core.validators import MaxValueValidator, RegexValidator

View File

@ -1,5 +1,3 @@
from __future__ import unicode_literals
import copy import copy
import sys import sys