Exemple #1
0
 def test_profile_get_from_container(self) -> None:
     # arrange
     finder = InstagramQueryHashFinder('profile')
     finder._remote_fetcher = _FILE_FETCHER
     # act
     hashes = finder.find_hashes()
     # assert
     self.assertSetEqual(hashes, _QUERYHASHES_EXPECTED_PROFILE)
Exemple #2
0
 def _get_queryhashfinder(self) -> InstagramQueryHashFinder:
     finder = InstagramQueryHashFinder('profile')
     finder.find_hashes = lambda: _QUERYHASHES_EXPECTED_PROFILE  # type: ignore
     return finder