Changeset - c727ae4f9793
[Not reviewed]
0 3 0
Lance Edgar (lance) - 17 months ago 2023-05-18 18:12:45
lance@edbob.org
Avoid deprecated import for `OrderedDict`
3 files changed with 3 insertions and 9 deletions:
0 comments (0 inline, 0 general)
tests/importing/test_handlers.py
Show inline comments
 
# -*- coding: utf-8; -*-
 

	
 
from __future__ import unicode_literals, absolute_import
 

	
 
import datetime
 
import unittest
 
from collections import OrderedDict
 

	
 
import pytz
 
from sqlalchemy import orm
 
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
 
from .test_postgresql import MockBulkImporter
 

	
 

	
tests/importing/test_importers.py
Show inline comments
 
# -*- coding: utf-8; -*-
 

	
 
from __future__ import unicode_literals, absolute_import
 

	
 
from collections import OrderedDict
 
from unittest import TestCase
 

	
 
from mock import Mock, patch, call
 

	
 
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
 

	
 

	
 
class ImporterBattery(ImporterTester):
 
    """
tests/trainwreck/test_handler.py
Show inline comments
 
# -*- 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
 

	
 

	
 
class TestTrainwreckHandler(TestCase):
 

	
 
    def setUp(self):
0 comments (0 inline, 0 general)