[TrivialFix] Fix comment and function name typo error
Change-Id: I713dd471a76e82ee0a4471ea4e5f9dcb57227345
This commit is contained in:
parent
10fdc075fd
commit
df2fd4a252
|
@ -622,7 +622,7 @@ def _compute_node_select(context, filters=None, limit=None, marker=None):
|
||||||
select = select.where(cn_tbl.c.id > marker)
|
select = select.where(cn_tbl.c.id > marker)
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
select = select.limit(limit)
|
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.
|
# order of the underlying DB.
|
||||||
select = select.order_by(asc("id"))
|
select = select.order_by(asc("id"))
|
||||||
return select
|
return select
|
||||||
|
|
|
@ -284,7 +284,7 @@ class SingleCellSimple(fixtures.Fixture):
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def _fake_target_cell(self, context, target_cell):
|
def _fake_target_cell(self, context, target_cell):
|
||||||
# NOTE(danms): Just pass through the context without actually
|
# NOTE(danms): Just pass through the context without actually
|
||||||
# targetting anything.
|
# targeting anything.
|
||||||
yield context
|
yield context
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ class TestExtractJSON(test.NoDBTestCase):
|
||||||
self.schema)
|
self.schema)
|
||||||
self.assertIn('JSON does not validate', str(error))
|
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,
|
error = self.assertRaises(webob.exc.HTTPBadRequest,
|
||||||
util.extract_json,
|
util.extract_json,
|
||||||
'{"name": "hello", "cow": "moo"}',
|
'{"name": "hello", "cow": "moo"}',
|
||||||
|
|
|
@ -109,7 +109,7 @@ class ImageBackendFixture(fixtures.Fixture):
|
||||||
|
|
||||||
disk = mock.create_autospec(imagebackend.Image)
|
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
|
# with existing tests which test got_files and imported_files. They
|
||||||
# should be removed when they have no remaining users.
|
# should be removed when they have no remaining users.
|
||||||
disk.cache.side_effect = self._fake_cache
|
disk.cache.side_effect = self._fake_cache
|
||||||
|
|
Loading…
Reference in New Issue