Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
489 B
1
Indexable
Never
  multiple_list = MultipleList(user_id=1)
        with self.assertRaises(ListLimitExceededError):
            for n in range(101):
                self.app.post(
                    self.path,
                    headers=self.headers,
                    content_type='application/json',
                    data=json.dumps({
                        'name': f'My Favorite Venues {n}',
                        'description': f'Some description {n}'
                    })
                )