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

Add sample pytest using dpytest framework #98

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

OverkillGuy
Copy link
Contributor

New test file, attempting to run the bot in controlled environment (mocked messages) to confirm features work.

Such a test harness will prove important to avoid regressions in future, when migrating from one bot library to another.

As seen in test comments, it's not fully ready (I don't know the codebase enough) but this already has value, both in showing how to set up tests, and by "chafing" enough that we can see what's worth improving.

I took the liberty of adding poetry, but that's personal preference, no huge reason to change what works.

Intent here is to showcase technology, not straight up adoption as PR, hence marking draft.


RCT A. Jib

Jb DOYON and others added 4 commits February 5, 2022 04:26
New test file, attempting to run the bot in controlled
environment (mocked messages) to confirm features work.

Such a test harness will prove important to avoid regressions in future,
when migrating from one bot library to another.

As seen in test comments, it's not fully ready (I don't know the
codebase enough) but this already has value, both in showing how to set
up tests, and by "chafing" enough that we can see what's worth
improving.
Prevents the bot from crashing when running fetch_data(). The message
content assert still fails for some reason.
@Gehock
Copy link
Member

Gehock commented Feb 5, 2022

Looks really interesting! I figured a way to prevent the bot from crashing during fetch_data, but for some reason the assert still fails.

@Gehock Gehock force-pushed the main branch 2 times, most recently from 2dedfd6 to 6a5fb32 Compare April 2, 2024 14:29
@Gehock Gehock force-pushed the main branch 2 times, most recently from 2931dc1 to 2b67941 Compare January 23, 2025 10: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.

2 participants