iso8601.is8601.Utc No Longer Exists

iso8601.UTC is correct datetime UTC field object.
iso8601 >= 0.1.12 includes only iso8601.UTC for python3
while both UTC and Utc() for python2. Less then 0.1.12
included both UTC and Utc() for both python2/3.

Change-Id: I0f8796fba6725eea013b3f8d9ad33c10a402c524
Closes-Bug: #1715486
This commit is contained in:
Sampath Priyankara
2017-09-07 10:40:49 +09:00
parent e74095da1f
commit 887fa746ae
10 changed files with 32 additions and 32 deletions

View File

@@ -78,7 +78,7 @@ class TestScoringEngineObject(base.DbTestCase):
scoring_engine.create()
expected_scoring_engine = self.fake_scoring_engine.copy()
expected_scoring_engine['created_at'] = expected_scoring_engine[
'created_at'].replace(tzinfo=iso8601.iso8601.Utc())
'created_at'].replace(tzinfo=iso8601.UTC)
mock_create_scoring_engine.assert_called_once_with(
expected_scoring_engine)
self.assertEqual(self.context, scoring_engine._context)
@@ -139,9 +139,9 @@ class TestScoringEngineObject(base.DbTestCase):
expected_scoring_engine = fake_deleted_scoring_engine.copy()
expected_scoring_engine['created_at'] = expected_scoring_engine[
'created_at'].replace(tzinfo=iso8601.iso8601.Utc())
'created_at'].replace(tzinfo=iso8601.UTC)
expected_scoring_engine['deleted_at'] = expected_scoring_engine[
'deleted_at'].replace(tzinfo=iso8601.iso8601.Utc())
'deleted_at'].replace(tzinfo=iso8601.UTC)
_id = self.fake_scoring_engine['id']
scoring_engine = objects.ScoringEngine.get_by_id(self.context, _id)