mirror of
https://github.com/laramies/theHarvester.git
synced 2026-09-12 04:37:40 +02:00
A lot of changes and fixes (#1168)
* add pytest.ini file and fix test warning in qwantsearch * ignore unsed imports * Remove n45ht as the api is down * Remove modules that use google as google blocks you after one go * Remove missed code from when removing modules that use google * Remove missed code from when removing modules that use google * Add new vt-py dep and update pytest * WIP virustotal migration to api * Remove test that fails due to how the api returns not found entries * Remove entries from myparser re google * update fastapi and starlette * update version * Update dockerfile to use dev ubuntu version * remove spyse module * remove spyse dep * fix tests by removing un-needed tests and indentation fix * fix some mypy errors * remove spyse and remove color output and fix mypy error * flake8 fixes * bump version and set it a dev version
This commit is contained in:
@@ -87,13 +87,13 @@ class TestSearchGithubCode:
|
||||
Core.github_key = MagicMock(return_value="lol")
|
||||
test_class_instance = githubcode.SearchGithubCode(word="test", limit=500)
|
||||
test_result = githubcode.SuccessResult(list(), next_page=2, last_page=4)
|
||||
assert(2 == await test_class_instance.next_page_or_end(test_result))
|
||||
assert (2 == await test_class_instance.next_page_or_end(test_result))
|
||||
|
||||
async def test_last_page(self):
|
||||
Core.github_key = MagicMock(return_value="lol")
|
||||
test_class_instance = githubcode.SearchGithubCode(word="test", limit=500)
|
||||
test_result = githubcode.SuccessResult(list(), None, None)
|
||||
assert(None is await test_class_instance.next_page_or_end(test_result))
|
||||
assert (None is await test_class_instance.next_page_or_end(test_result))
|
||||
|
||||
if __name__ == '__main__':
|
||||
pytest.main()
|
||||
|
||||
Reference in New Issue
Block a user