Skip to content

Commit b35ce92

Browse files
committed
💚 update unit test
1 parent f2a1535 commit b35ce92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_contributors.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TestPublish:
99
@patch("gease.contributors.get_token")
1010
@patch("gease.contributors.Api.get_public_api")
1111
def test_all_contributors(self, fake_api, get_token):
12-
get_token.side_effect = [FileNotFoundError]
12+
get_token.side_effect = [NoGeaseConfigFound]
1313
sample_reply = [
1414
{"login": "howdy", "url": "https://api.github.com/users/howdy"}
1515
]
@@ -32,7 +32,7 @@ def test_all_contributors(self, fake_api, get_token):
3232

3333
@patch("gease.contributors.get_token")
3434
@patch("gease.contributors.Api.get_public_api")
35-
def test_no_names(self, fake_api, get_token):
35+
def test_private_api(self, fake_api, get_token):
3636
get_token.side_effect = [NoGeaseConfigFound]
3737
sample_reply = [
3838
{"login": "howdy", "url": "https://api.github.com/users/howdy"}
@@ -53,7 +53,7 @@ def test_no_names(self, fake_api, get_token):
5353

5454
@patch("gease.contributors.get_token")
5555
@patch("gease.contributors.Api.get_api")
56-
def test_private_api(self, fake_api, _):
56+
def test_no_names(self, fake_api, _):
5757
sample_reply = [
5858
{"login": "howdy", "url": "https://api.github.com/users/howdy"}
5959
]

0 commit comments

Comments
 (0)