def test_contributor(self): thread = LiveThread(self.reddit, "ukaeu1ik4sw5") with self.recorder.use_cassette("TestLiveThread_test_contributor"): contributors = thread.contributor() assert isinstance(contributors, RedditorList) assert len(contributors) > 0 for contributor in contributors: assert "permissions" in contributor.__dict__ assert isinstance(contributor, Redditor)
def test_contributor(self): thread = LiveThread(self.reddit, 'ukaeu1ik4sw5') with self.recorder.use_cassette('TestLiveThread_test_contributor'): contributors = thread.contributor() assert isinstance(contributors, RedditorList) assert len(contributors) > 0 for contributor in contributors: assert 'permissions' in contributor.__dict__ assert isinstance(contributor, Redditor)
def test_contributor__with_manage_permission(self, _): # see issue #710 for more info self.reddit.read_only = False thread = LiveThread(self.reddit, "xyu8kmjvfrww") url = API_PATH["live_contributors"].format(id=thread.id) with self.use_cassette(): data = thread._reddit.request("GET", url) contributors = thread.contributor() assert isinstance(data, list) assert isinstance(contributors, RedditorList) assert len(contributors) > 0
def test_contributor__with_manage_permission(self, _): # see issue #710 for more info self.reddit.read_only = False thread = LiveThread(self.reddit, 'xyu8kmjvfrww') url = API_PATH['live_contributors'].format(id=thread.id) with self.recorder.use_cassette( 'TestLiveThread_test_contributor__with_manage_permission'): data = thread._reddit.request('GET', url) contributors = thread.contributor() assert isinstance(data, list) assert isinstance(contributors, RedditorList) assert len(contributors) > 0
def test_contributor(self, _): thread = LiveThread(self.reddit, 'ukaeu1ik4sw5') with self.recorder.use_cassette('TestLiveThread_test_contributor'): contributors = thread.contributor() assert isinstance(contributors, RedditorList) assert len(contributors) > 0
def test_contributor(self): thread = LiveThread(self.reddit, 'ukaeu1ik4sw5') with self.recorder.use_cassette('TestLiveThread_test_contributor'): contributors = thread.contributor() assert isinstance(contributors, RedditorList) assert len(contributors) > 0