gpt4free/etc/unittest/include.py
Heiner Lohaus e5b7f72b71 Move some modules, create providers dir
Set min version for duckduckgo
Make duckduckgo search async
Remove get_lastet_version
2024-02-22 00:16:58 +01:00

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()