Skip to content

Commit

Permalink
DH-5080/update the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Dec 15, 2023
1 parent 019c696 commit 035d875
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dataherald/tests/sql_generator/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataherald.config import System
from dataherald.sql_database.models.types import DatabaseConnection
from dataherald.sql_generator import SQLGenerator
from dataherald.types import Question, Response
from dataherald.types import Prompt, SQLGeneration


class TestGenerator(SQLGenerator):
Expand All @@ -15,14 +15,12 @@ def __init__(self, system: System):
@override
def generate_response(
self,
user_question: Question,
user_question: Prompt,
database_connection: DatabaseConnection,
context: List[dict] = None, # noqa: ARG002
generate_csv: bool = None,
) -> Response:
return Response(
) -> SQLGeneration:
return SQLGeneration(
question_id="651f2d76275132d5b65175eb",
response="Foo response",
sql_query="bar",
generate_csv=None,
sql="Foo response",
status="bar",
)

0 comments on commit 035d875

Please sign in to comment.