mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix: ChromeDriver only supports characters in the BMP
Add set_cookies helper, Show last used model
This commit is contained in:
parent
feb83c168b
commit
1eb7dc05e5
18 changed files with 75 additions and 63 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from . import include
|
||||
import unittest
|
||||
from unittest.mock import MagicMock
|
||||
from .mocks import ProviderMock
|
||||
|
|
@ -13,7 +12,7 @@ class TestBackendApi(unittest.TestCase):
|
|||
|
||||
def setUp(self):
|
||||
if not has_requirements:
|
||||
self.skipTest('"flask" not installed')
|
||||
self.skipTest("gui is not installed")
|
||||
self.app = MagicMock()
|
||||
self.api = Backend_Api(self.app)
|
||||
|
||||
|
|
@ -36,7 +35,7 @@ class TestUtilityFunctions(unittest.TestCase):
|
|||
|
||||
def setUp(self):
|
||||
if not has_requirements:
|
||||
self.skipTest('"flask" not installed')
|
||||
self.skipTest("gui is not installed")
|
||||
|
||||
def test_get_error_message(self):
|
||||
g4f.debug.last_provider = ProviderMock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue