Untitled

 avatar
unknown
plain_text
2 years ago
530 B
6
Indexable
    @patch.object(MultipleList, "get_user_list_count")
    def test_400_list_limit_exceeded_error(self, get_user_list_count_mock):
        get_user_list_count_mock.return_value = 100

        response = self.app.post(
            self.path,
            headers=self.headers,
            content_type='application/json',
            data=json.dumps({
                'name': 'My Favorite',
                'description': 'Some description'
            })
        )
        data = json.loads(response.get_data())
        print(data)
Editor is loading...