Skip to content

Conversation

@broHeryk
Copy link
Collaborator

@broHeryk broHeryk commented Aug 5, 2025

Description

Closes CAIP-80

This PR adds tests for covering end-to-end scenarios like:

  • Create a stream
  • Add user to the stream
  • List users
  • Remove users
  • Read/write message
  • Datafeed loop (receives event while another bot posts the message)

Checklist

  • Referenced an issue in the PR title or description
  • Filled properly the description and dependencies, if any
  • Unit tests updated or added
  • Docstrings added or updated


@pytest.fixture
def bot_config_path(tmp_path: Path):
key_path = tmp_path / "key.pem"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll probably end up having multiple keys/configs to be able to test scenarios that require admin access or config changes. just to keep in mind.

@broHeryk broHeryk changed the title [WIP] CAIP-80 add basic POC test CAIP-80 add basic POC test Aug 8, 2025
@broHeryk broHeryk changed the title CAIP-80 add basic POC test CAIP-80 add a few e2e test scenarious Aug 8, 2025
NUMBER_OF_MESSAGES = 3


def generate_config(tmp_dir, bot_username):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some typing for this function .. since tmp_dir can't be just a str

Copy link
Collaborator

@catalinsymphony catalinsymphony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@broHeryk broHeryk merged commit 699c0dd into main Aug 11, 2025
21 checks passed
@thibauult thibauult deleted the CAIP-80-extra-tests-based-on-examples branch August 22, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants