Skip to content

Commit

Permalink
assertEquals -> assertEqual (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
simontoens authored Jan 2, 2025
1 parent f91896a commit 7e9b63a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/configtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_excluded_labels(self):

cfg = config.load(repo_root)

self.assertEquals(("123", "444"), cfg.excluded_dependency_labels)
self.assertEqual(("123", "444"), cfg.excluded_dependency_labels)

def test_str(self):
repo_root = tempfile.mkdtemp("root")
Expand Down
30 changes: 15 additions & 15 deletions tests/maveninstallinfotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def test_explicit_paths(self):

files = m.get_maven_install_names_and_paths(repo_root)

self.assertEquals(2, len(files))
self.assertEquals("my_rules", files[0][0])
self.assertEquals(os.path.join(repo_root, "my_rules_install.json"), files[0][1])
self.assertEquals("maven", files[1][0])
self.assertEquals(os.path.join(repo_root, "tools", "maven_install.json"), files[1][1])
self.assertEqual(2, len(files))
self.assertEqual("my_rules", files[0][0])
self.assertEqual(os.path.join(repo_root, "my_rules_install.json"), files[0][1])
self.assertEqual("maven", files[1][0])
self.assertEqual(os.path.join(repo_root, "tools", "maven_install.json"), files[1][1])

def test_path_with_glob(self):
repo_root = tempfile.mkdtemp("monorepo")
Expand All @@ -37,11 +37,11 @@ def test_path_with_glob(self):

files = m.get_maven_install_names_and_paths(repo_root)

self.assertEquals(2, len(files))
self.assertEquals("maven", files[0][0])
self.assertEquals(os.path.join(repo_root, "tools", "maven_install.json"), files[0][1])
self.assertEquals("my_rules", files[1][0])
self.assertEquals(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
self.assertEqual(2, len(files))
self.assertEqual("maven", files[0][0])
self.assertEqual(os.path.join(repo_root, "tools", "maven_install.json"), files[0][1])
self.assertEqual("my_rules", files[1][0])
self.assertEqual(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])

def test_path_with_glob_and_exclusions(self):
repo_root = tempfile.mkdtemp("monorepo")
Expand All @@ -52,11 +52,11 @@ def test_path_with_glob_and_exclusions(self):

files = m.get_maven_install_names_and_paths(repo_root)

self.assertEquals(2, len(files))
self.assertEquals("maven_blah", files[0][0])
self.assertEquals(os.path.join(repo_root, "tools", "maven_blah_install.json"), files[0][1])
self.assertEquals("my_rules", files[1][0])
self.assertEquals(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
self.assertEqual(2, len(files))
self.assertEqual("maven_blah", files[0][0])
self.assertEqual(os.path.join(repo_root, "tools", "maven_blah_install.json"), files[0][1])
self.assertEqual("my_rules", files[1][0])
self.assertEqual(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])

def _touch_file_at_path(self, repo_root_path, file_path):
path = os.path.join(repo_root_path, file_path)
Expand Down

0 comments on commit 7e9b63a

Please sign in to comment.