Skip to content

Commit 519bdb0

Browse files
committed
All requires authentication methods tested
1 parent ad0a199 commit 519bdb0

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

tests/unit/test_auths.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ def after_setup(self):
6868
self.session.auth = None
6969

7070
def test_add_scopes(self):
71-
"""Test that add scopes requires authentication."""
71+
"""Test that adding scopes requires authentication."""
7272
with pytest.raises(github3.AuthenticationFailed):
7373
self.instance.add_scopes()
74+
75+
def test_delete(self):
76+
"""Test that deleteing an authorization requires authentication."""
77+
with pytest.raises(github3.AuthenticationFailed):
78+
self.instance.delete()
79+
80+
def test_remove_scopes(self):
81+
"""Test that removing scopes requires authentication."""
82+
with pytest.raises(github3.AuthenticationFailed):
83+
self.instance.remove_scopes()
84+
85+
def test_replace_scopes(self):
86+
"""Test that replacing scopes requires authentication."""
87+
with pytest.raises(github3.AuthenticationFailed):
88+
self.instance.replace_scopes()

0 commit comments

Comments
 (0)