summaryrefslogtreecommitdiffstats
path: root/etc/unittest/main.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-18 18:23:16 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-18 18:23:16 +0100
commit2fe43166cc4ab4d05261c3fe9690a49284c90570 (patch)
tree447a5232ae89c2775608c237330f3aa0ecc379a7 /etc/unittest/main.py
parentAdd account support in Copilot provider (diff)
downloadgpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar.gz
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar.bz2
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar.lz
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar.xz
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.tar.zst
gpt4free-2fe43166cc4ab4d05261c3fe9690a49284c90570.zip
Diffstat (limited to '')
-rw-r--r--etc/unittest/main.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/etc/unittest/main.py b/etc/unittest/main.py
index cc3c6a18..a3949216 100644
--- a/etc/unittest/main.py
+++ b/etc/unittest/main.py
@@ -7,18 +7,6 @@ from .mocks import ProviderMock
DEFAULT_MESSAGES = [{'role': 'user', 'content': 'Hello'}]
-class NoTestChatCompletion(unittest.TestCase):
-
- def no_test_create_default(self):
- result = ChatCompletion.create(g4f.models.default, DEFAULT_MESSAGES)
- if "Good" not in result and "Hi" not in result:
- self.assertIn("Hello", result)
-
- def no_test_bing_provider(self):
- provider = g4f.Provider.Bing
- result = ChatCompletion.create(g4f.models.default, DEFAULT_MESSAGES, provider)
- self.assertIn("Bing", result)
-
class TestGetLastProvider(unittest.TestCase):
def test_get_last_provider(self):