From df2fd4a252cecc1e1ef471c071e57526ddf65499 Mon Sep 17 00:00:00 2001 From: jeckxie Date: Thu, 22 Dec 2016 15:20:23 +0800 Subject: [PATCH] [TrivialFix] Fix comment and function name typo error Change-Id: I713dd471a76e82ee0a4471ea4e5f9dcb57227345 --- nova/db/sqlalchemy/api.py | 2 +- nova/tests/fixtures.py | 2 +- nova/tests/unit/api/openstack/placement/test_util.py | 2 +- nova/tests/unit/virt/libvirt/fake_imagebackend.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 6553deb257c2..bfd62c1787e0 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -622,7 +622,7 @@ def _compute_node_select(context, filters=None, limit=None, marker=None): select = select.where(cn_tbl.c.id > marker) if limit is not None: select = select.limit(limit) - # Explictly order by id, so we're not dependent on the native sort + # Explicitly order by id, so we're not dependent on the native sort # order of the underlying DB. select = select.order_by(asc("id")) return select diff --git a/nova/tests/fixtures.py b/nova/tests/fixtures.py index be42c66286c4..198a9bc59e1b 100644 --- a/nova/tests/fixtures.py +++ b/nova/tests/fixtures.py @@ -284,7 +284,7 @@ class SingleCellSimple(fixtures.Fixture): @contextmanager def _fake_target_cell(self, context, target_cell): # NOTE(danms): Just pass through the context without actually - # targetting anything. + # targeting anything. yield context diff --git a/nova/tests/unit/api/openstack/placement/test_util.py b/nova/tests/unit/api/openstack/placement/test_util.py index b849d3cd2815..48e9ad0750e7 100644 --- a/nova/tests/unit/api/openstack/placement/test_util.py +++ b/nova/tests/unit/api/openstack/placement/test_util.py @@ -123,7 +123,7 @@ class TestExtractJSON(test.NoDBTestCase): self.schema) self.assertIn('JSON does not validate', str(error)) - def test_no_addtional_properties(self): + def test_no_additional_properties(self): error = self.assertRaises(webob.exc.HTTPBadRequest, util.extract_json, '{"name": "hello", "cow": "moo"}', diff --git a/nova/tests/unit/virt/libvirt/fake_imagebackend.py b/nova/tests/unit/virt/libvirt/fake_imagebackend.py index 7ec02205b57f..8f29a9c8967f 100644 --- a/nova/tests/unit/virt/libvirt/fake_imagebackend.py +++ b/nova/tests/unit/virt/libvirt/fake_imagebackend.py @@ -109,7 +109,7 @@ class ImageBackendFixture(fixtures.Fixture): disk = mock.create_autospec(imagebackend.Image) - # NOTE(mdbooth): fake_cache and fake_import_file are for compatiblity + # NOTE(mdbooth): fake_cache and fake_import_file are for compatibility # with existing tests which test got_files and imported_files. They # should be removed when they have no remaining users. disk.cache.side_effect = self._fake_cache