From c727ae4f97931824207c31cc63bf69533c8d17f4 2023-05-18 18:12:45 From: Lance Edgar Date: 2023-05-18 18:12:45 Subject: [PATCH] Avoid deprecated import for `OrderedDict` --- diff --git a/tests/importing/test_handlers.py b/tests/importing/test_handlers.py index 67e409baa711322ef76b0c37e985699cdc3ad0c2..d0f9bdece74ea6616fd451a9b33272353480f1af 100644 --- a/tests/importing/test_handlers.py +++ b/tests/importing/test_handlers.py @@ -1,9 +1,8 @@ # -*- coding: utf-8; -*- -from __future__ import unicode_literals, absolute_import - import datetime import unittest +from collections import OrderedDict import pytz from sqlalchemy import orm @@ -12,7 +11,6 @@ from mock import patch, Mock from rattail.db import Session from rattail.importing import handlers, Importer from rattail.config import make_config -from rattail.util import OrderedDict from .. import RattailTestCase from . import ImporterTester from .test_importers import MockImporter diff --git a/tests/importing/test_importers.py b/tests/importing/test_importers.py index 65c389db444c60562bbcff3edf4d98f117b5184b..38c2597abb6054a9685346f1990be95fadf61fd9 100644 --- a/tests/importing/test_importers.py +++ b/tests/importing/test_importers.py @@ -1,7 +1,6 @@ # -*- coding: utf-8; -*- -from __future__ import unicode_literals, absolute_import - +from collections import OrderedDict from unittest import TestCase from mock import Mock, patch, call @@ -10,7 +9,6 @@ from rattail.db import model from rattail.db.util import QuerySequence from rattail.importing import importers from rattail.config import make_config -from rattail.util import OrderedDict from .. import NullProgress, RattailTestCase from . import ImporterTester diff --git a/tests/trainwreck/test_handler.py b/tests/trainwreck/test_handler.py index ac24cd7336ecd3eedd4b858d0a6e83d4539e263a..6f6e8cb2e23e5721d3f84ce1baaa4da4a7256c39 100644 --- a/tests/trainwreck/test_handler.py +++ b/tests/trainwreck/test_handler.py @@ -1,16 +1,14 @@ # -*- coding: utf-8; -*- -from __future__ import unicode_literals, absolute_import - import datetime import warnings +from collections import OrderedDict from unittest import TestCase import sqlalchemy as sa from rattail.trainwreck import handler as mod from rattail.config import make_config -from rattail.util import OrderedDict from rattail.trainwreck.db import Session as TrainwreckSession