Exemple #1
0
def test_fetch_all_meetings(client: tp.Generator) -> None:
    with client as client:
        response = client.get("/meetings")

    assert response.status_code == 200

    response_json = response.json()
    assert len(response_json) == 5
Exemple #2
0
def test_fetch_meeting(
    mocker: MockerFixture,
    client: tp.Generator,
    create_meeting_method_response: dict[str, str],
) -> None:
    mocked_api_call = mocker.patch(
        "routers.zoom.zoom_service.zoom.get_meeting")
    mocked_api_call.return_value = create_meeting_method_response

    meeting_id = "123"

    with client as client:
        response = client.get(f"/meeting/{meeting_id}")

    assert response.status_code == 200

    response_json = response.json()
    assert response_json["start_url"] == "https://test.com/"