Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google sheets end2end test #825

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ def test_init(self, mock_get_conv_uuid: Iterator[Any]) -> None:
team_class=GBBGoogleSheetsTeam,
)

@pytest.mark.flaky
@pytest.mark.openai
@pytest.mark.fastapi_openapi_team
def test_google_sheets_team_end2end(
self, google_sheets_fastapi_openapi_url: str, mock_get_conv_uuid: Iterator[Any]
def _test_google_sheets_team_end2end(
self,
user_id: int,
google_sheets_fastapi_openapi_url: str,
mock_get_conv_uuid: Iterator[Any],
) -> None:
user_id = 123
with mock_get_conv_uuid:
google_sheets_team = GBBGoogleSheetsTeam(
task="Do your job.",
Expand Down Expand Up @@ -99,3 +98,27 @@ def test_google_sheets_team_end2end(
assert (
len(expected_messages) == 0
), f"Expected messages left: {expected_messages}"

@pytest.mark.flaky
@pytest.mark.openai
@pytest.mark.fastapi_openapi_team
def test_google_sheets_team_end2end(
self, google_sheets_fastapi_openapi_url: str, mock_get_conv_uuid: Iterator[Any]
) -> None:
self._test_google_sheets_team_end2end(
user_id=123,
google_sheets_fastapi_openapi_url=google_sheets_fastapi_openapi_url,
mock_get_conv_uuid=mock_get_conv_uuid,
)

@pytest.mark.flaky
@pytest.mark.openai
@pytest.mark.fastapi_openapi_team
def test_google_sheets_real_fastapi_team_end2end(
self, mock_get_conv_uuid: Iterator[Any]
) -> None:
self._test_google_sheets_team_end2end(
user_id=13,
google_sheets_fastapi_openapi_url="https://google-sheets.tools.staging.fastagency.ai/openapi.json",
mock_get_conv_uuid=mock_get_conv_uuid,
)