mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-19 14:44:37 +08:00
Fix: ChromeDriver only supports characters in the BMP
Add set_cookies helper, Show last used model
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user