Skip to content

Commit

Permalink
Fixes test suggest_datasets_api (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaxsze authored Aug 11, 2022
1 parent 6ec87e9 commit 63f7848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Clean up event code [#2751](https://github.com/opendatateam/udata/pull/2751)
- Replace mongo legacy image in CI [#2754](https://github.com/opendatateam/udata/pull/2754)
- Fixes test `test_suggest_datasets_api` by modifying condition [#2759](https://github.com/opendatateam/udata/pull/2759)

## 4.1.1 (2022-07-08)

Expand Down
2 changes: 1 addition & 1 deletion udata/tests/api/test_datasets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ def test_suggest_datasets_api(self):
self.assertIn('title', suggestion)
self.assertIn('slug', suggestion)
self.assertIn('image_url', suggestion)
self.assertIn('test', suggestion['title'])
self.assertIn('tes', suggestion['title'])
self.assertEqual(response.json[0]['id'], str(max_follower_dataset.id))

def test_suggest_datasets_acronym_api(self):
Expand Down

0 comments on commit 63f7848

Please sign in to comment.