mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
test_manifest_config_properties: use assertEqual
The method assertEquals is an deprecated alias for assertEqual. See: https://docs.python.org/3/library/unittest.html#deprecated-aliases Change-Id: Id94ba6d6055bdc18b87c53e8729902bb278855aa Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354035 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com>
This commit is contained in:
parent
43549d8d08
commit
8051cdb629
@ -480,13 +480,13 @@ class ManifestPropertiesFetchedCorrectly(unittest.TestCase):
|
|||||||
self.assertFalse(fakeproj.partial_clone)
|
self.assertFalse(fakeproj.partial_clone)
|
||||||
|
|
||||||
fakeproj.config.SetString('repo.depth', '48')
|
fakeproj.config.SetString('repo.depth', '48')
|
||||||
self.assertEquals(fakeproj.depth, '48')
|
self.assertEqual(fakeproj.depth, '48')
|
||||||
|
|
||||||
fakeproj.config.SetString('repo.clonefilter', 'blob:limit=10M')
|
fakeproj.config.SetString('repo.clonefilter', 'blob:limit=10M')
|
||||||
self.assertEquals(fakeproj.clone_filter, 'blob:limit=10M')
|
self.assertEqual(fakeproj.clone_filter, 'blob:limit=10M')
|
||||||
|
|
||||||
fakeproj.config.SetString('repo.partialcloneexclude', 'third_party/big_repo')
|
fakeproj.config.SetString('repo.partialcloneexclude', 'third_party/big_repo')
|
||||||
self.assertEquals(fakeproj.partial_clone_exclude, 'third_party/big_repo')
|
self.assertEqual(fakeproj.partial_clone_exclude, 'third_party/big_repo')
|
||||||
|
|
||||||
fakeproj.config.SetString('manifest.platform', 'auto')
|
fakeproj.config.SetString('manifest.platform', 'auto')
|
||||||
self.assertEquals(fakeproj.manifest_platform, 'auto')
|
self.assertEqual(fakeproj.manifest_platform, 'auto')
|
||||||
|
Loading…
Reference in New Issue
Block a user