Skip to content

Commit

Permalink
fix(tests): updated imports in tests functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucino772 committed Jan 31, 2022
1 parent 876d291 commit ac8f0c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/test_mojang_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

class TestMojangStatus(unittest.TestCase):
def setUp(self) -> None:
self.notch = mojang.names("069a79f444e94726a5befca90e38aaf5")
self.jeb_ = mojang.names("853c80ef3c3749fdaa49938b674adae6")
self.notch = mojang.get_names("069a79f444e94726a5befca90e38aaf5")
self.jeb_ = mojang.get_names("853c80ef3c3749fdaa49938b674adae6")

self.unkown = mojang.names("069a79f444e94726a5befca90e38aaf6")
self.unkown = mojang.get_names("069a79f444e94726a5befca90e38aaf6")

def test_existent_names(self):
self.assertEqual(self.notch, NameInfoList([NameInfo("Notch", None)]))
Expand All @@ -20,4 +20,4 @@ def test_unexistent_names(self):
self.assertEqual(self.unkown, None)

def test_invalid_names(self):
self.assertRaises(ValueError, mojang.names, "thisisnotauuid")
self.assertRaises(ValueError, mojang.get_names, "thisisnotauuid")
2 changes: 1 addition & 1 deletion tests/test_mojang_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestMojangStatus(unittest.TestCase):
def setUp(self) -> None:
self.value = mojang.status()
self.value = mojang.get_status()

def test_status(self):
expected = StatusCheck(
Expand Down
8 changes: 4 additions & 4 deletions tests/test_mojang_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

class TestMojangStatus(unittest.TestCase):
def setUp(self) -> None:
self.notch = mojang.user("069a79f444e94726a5befca90e38aaf5")
self.jeb_ = mojang.user("853c80ef3c3749fdaa49938b674adae6")
self.unkown = mojang.user("069a79f444e94726a5befca90e38aaf6")
self.notch = mojang.get_profile("069a79f444e94726a5befca90e38aaf5")
self.jeb_ = mojang.get_profile("853c80ef3c3749fdaa49938b674adae6")
self.unkown = mojang.get_profile("069a79f444e94726a5befca90e38aaf6")

def test_existent_user(self):
self.assertEqual(
Expand Down Expand Up @@ -52,4 +52,4 @@ def test_unexistent_user(self):
self.assertEqual(self.unkown, None)

def test_invalid_user(self):
self.assertRaises(ValueError, mojang.user, "thisisnotauuid")
self.assertRaises(ValueError, mojang.get_profile, "thisisnotauuid")

0 comments on commit ac8f0c6

Please sign in to comment.