Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneggz committed Aug 13, 2023
1 parent f439dac commit 1ee3d29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/models/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Message(BaseModel): # pylint: disable=too-few-public-methods
messages: Optional[Any] = None
temperature: Optional[float or int] = None

class Config: # pylint: disable=too-few-public-methods
class ConfigDict: # pylint: disable=too-few-public-methods
"""A message to send to the chatbot."""
json_schema_extra = {
"example": {
Expand Down
4 changes: 2 additions & 2 deletions server/models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class ResponseStatus(BaseModel):
version: str = Field(example='v0.0.15')
version: str = Field(default='v0.0.15')

#################################################
## ChatGPT
Expand All @@ -12,7 +12,7 @@ class ResponseStatus(BaseModel):
class ResponseChat(BaseModel):
# data: ChatCompletion

class Config: # pylint: disable=too-few-public-methods
class ConfigDict: # pylint: disable=too-few-public-methods
"""A message to send to the chatbot."""
json_schema_extra = {
"example": {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from starlette.testclient import TestClient

from main import app
from server.api import app

client = TestClient(app)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TestExampleCase(unittest.TestCase):

@unittest.skip("Example Test Case")
# @unittest.skip("Example Test Case")
def test_retrieve_files(self):
"""Test that the files are retrieved."""
token = "test"
Expand Down

0 comments on commit 1ee3d29

Please sign in to comment.