def test_users_correct_stream_class(self, mock_stream): mock_stream.return_value = MockStream() with self.login(self.user): self.get("api-streams:profile-all", uuid=self.content.author.uuid) mock_stream.assert_called_once_with(last_id=None, profile=self.content.author, user=self.user, accept_ids=None)
def test_users_correct_stream_class(self, mock_stream): mock_stream.return_value = MockStream() with self.login(self.user): self.get("api-streams:tag", name="foobar") mock_stream.assert_called_once_with( last_id=None, tag=self.content.tags.first(), user=self.user, accept_ids=None, )
def test_users_correct_stream_class(self, mock_stream): mock_stream.return_value = MockStream() with self.login(self.user): self.get("api-streams:followed") mock_stream.assert_called_once_with(last_id=None, user=self.user)
def test_users_correct_stream_class(self, mock_stream): mock_stream.return_value = MockStream() self.get("api-streams:public") mock_stream.assert_called_once_with(last_id=None)