mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-10 19:11:01 +00:00
e5b7f72b71
Set min version for duckduckgo Make duckduckgo search async Remove get_lastet_version
15 lines
420 B
Python
15 lines
420 B
Python
import unittest
|
|
|
|
class TestImport(unittest.TestCase):
|
|
|
|
def test_get_cookies(self):
|
|
from g4f import get_cookies as get_cookies_alias
|
|
from g4f.cookies import get_cookies
|
|
self.assertEqual(get_cookies_alias, get_cookies)
|
|
|
|
def test_requests(self):
|
|
from g4f.requests import StreamSession
|
|
self.assertIsInstance(StreamSession, type)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |