File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 'Programming Language :: Python :: 2.7' ,
5858 'Programming Language :: Python :: 3' ,
5959 'Programming Language :: Python :: 3.2' ,
60+ 'Programming Language :: Python :: 3.3' ,
6061 'Programming Language :: Python :: Implementation :: CPython' ,
6162 ],
6263)
Original file line number Diff line number Diff line change @@ -837,4 +837,15 @@ def test_remove_collaborator(self):
837837 self .mock_assertions ()
838838
839839 def test_set_subscription (self ):
840- pass
840+ self .response ('subscription' )
841+ self .put (self .api + 'subscription' )
842+ self .conf = {'data' : {'subscribed' : True , 'ignored' : False }}
843+
844+ with expect .githuberror ():
845+ self .repo .set_subscription (True , False )
846+ self .not_called ()
847+
848+ self .login ()
849+ s = self .repo .set_subscription (True , False )
850+ expect (s ).isinstance (github3 .notifications .Subscription )
851+ self .mock_assertions ()
You can’t perform that action at this time.
0 commit comments