Skip to content

Commit

Permalink
removed now tested with oob tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Dec 2, 2024
1 parent fb333a0 commit b42dae7
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions app/tests/e2e/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,45 +219,6 @@ async def test_delete_connection(
assert exc.value.status_code == 404


@pytest.mark.anyio
async def test_bob_and_alice_connect(
bob_member_client: RichAsyncClient,
alice_member_client: RichAsyncClient,
):
invitation_response = await bob_member_client.post(
f"{BASE_PATH}/create-invitation",
)
invitation = invitation_response.json()

accept_response = await alice_member_client.post(
f"{BASE_PATH}/accept-invitation",
json={"invitation": invitation["invitation"]},
)
connection_record = accept_response.json()

assert await check_webhook_state(
client=alice_member_client,
topic="connections",
state="completed",
filter_map={
"connection_id": connection_record["connection_id"],
},
)

alice_connection_id = connection_record["connection_id"]
bob_connection_id = invitation["connection_id"]

bob_connection = (
await bob_member_client.get(f"{BASE_PATH}/{bob_connection_id}")
).json()
alice_connection = (
await alice_member_client.get(f"{BASE_PATH}/{alice_connection_id}")
).json()

assert "completed" in alice_connection["state"]
assert "completed" in bob_connection["state"]


@pytest.mark.anyio
async def test_get_connections_paginated(
bob_member_client: RichAsyncClient, alice_member_client: RichAsyncClient
Expand Down

0 comments on commit b42dae7

Please sign in to comment.