-
Notifications
You must be signed in to change notification settings - Fork 2
Functional tests #55
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
base: testing
Are you sure you want to change the base?
Functional tests #55
Conversation
The first idea I had for this would not be fun. See #56 |
00ba39d
to
6dfbda6
Compare
in 8c432d8, there's an issue with pytest-twisted (I think?) where if I ctrl+c the test run after infobob connects, but before the deferLater fires, it throws @altendky the README in functional-tests/ is at least halfway okay. If you're feeling up to it, follow the install setup first, then run the ircd/services with docker-compose, wait for atheme to say it uplinked (like Here's the output I get:
|
Looks like this was reported a while ago in pytest-dev/pytest-twisted#4 |
As of 0ed3cec the |
Intent with the config module is to support running infobob against the test ircd/services environment with the same settings as the functional tests would use.
279f061
to
143bc5d
Compare
a55af4d
to
7bbd36c
Compare
This is better than overloading `god`: that account's purpose should just be for human monitoring and testing interactions manually.
- Tweak charybdis config to avoid connect throttling - Add a small delay to joinFakeUser to give NickServ a chance before joining channels - Rework channel model to allow message storage and retrieval
Work in progresswell, it's still in progress, but it's functional enough to warrant some extra pairs of eyes.functional-tests/README.md
has some good details, probably start by reading that.As of 7d6cc51, there are tests for:
To make the webui interaction not suck to test, I tweaked infobob's webui to output some things as JSON when given
Content-Type: application/json
. I also added a bit more logging in itsIRCClient
subclass.