Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Oct 3, 2022
1 parent deb4e7b commit a67b90f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def test_search_for_tags_no_db(self):
@patch.object(TagDatabase, 'get_infohashes')
async def test_search_for_tags_only_valid_tags(self, mocked_get_infohashes: Mock):
# test that function `search_for_tags` uses only valid tags
self.rqc.search_for_tags(tags=['invalid tag', 'valid_tag'])
self.rqc.search_for_tags(tags=['in', 'valid_tag'])
mocked_get_infohashes.assert_called_with({'valid_tag'})

@patch.object(MetadataStore, 'get_entries_threaded', new_callable=AsyncMock)
Expand Down

0 comments on commit a67b90f

Please sign in to comment.