James Lu
0f03a2398b
Updates to test_proto_inspircd.py
...
New tests: testFjoinResetsTS, testHandleTopic, and testHandleFTopic
2015-07-07 18:30:42 -07:00
James Lu
8f75c5363c
Move all the FakeIRC stuff to classes.py, update FakeIRC with the ability to get hook data
2015-07-07 18:07:20 -07:00
James Lu
098b29ae2d
Correction: it is legal for a server name to end with '.', but it can't start with it
2015-07-07 14:31:47 -07:00
James Lu
fe1f90bcd1
FakeIRC: swap arrows in debug output
...
This is for more consistency with the real protocol debug output:
-> is protocol OUTBOUND - irc.send()
<- is protocol INBOUND - irc.run()
2015-07-06 12:54:30 -07:00
James Lu
b3f369aa81
tests for utils.joinModes so I don't break it in the future
2015-07-06 12:38:45 -07:00
James Lu
170620c410
applyModes: remove old modepairs when setting non-list modes that require params
...
Closes #30 .
2015-07-05 23:15:17 -07:00
James Lu
48c3b4b2e9
applyModes: chop off the +/- part of each mode tuple when storing mode lists
...
Also update these tests accordingly.
2015-07-05 23:00:14 -07:00
James Lu
f1e26b6c55
Fix tests for FakeIRC and update comment style
2015-07-05 22:59:55 -07:00
James Lu
2cbd6fd851
Tests for FMODE/FJOIN, and bugfixes
2015-07-05 19:19:49 -07:00
James Lu
211decd2aa
everything: Improve logging
2015-07-05 13:44:48 -07:00
James Lu
d23d34e316
Refactor hooks to send parsed arguments instead of raw args
...
ref #18 .
- Command handlers that support hooks will now return parsed args, which are then sent to the hooks
- Hook commands are now stored in uppercase letters, consistent with the IRC spec
2015-07-04 19:00:29 -07:00
James Lu
b6f489fa9c
add tests for KILL, KICK, UID, and SERVER handlers
...
todo: rewrite the MODE handling so it doesn't suck, and test those too
2015-07-04 12:34:33 -07:00
James Lu
8ea62c31de
tests for spawnServer and SQUIT, make server name case-insensitive
2015-07-04 11:57:21 -07:00
James Lu
942f97352d
test kick/nickClient; make kickClient update channel userlist...
2015-07-03 23:48:28 -07:00
James Lu
18528c9cab
add tests for spawn/quit/join/partClient
2015-07-03 23:32:41 -07:00
James Lu
0bfe2b2a21
test_proto_inspircd: fix 'python3 -m unittest' compat
2015-07-03 18:26:13 -07:00
James Lu
8ad68023d6
Add tests for pr/inspircd, a common FakeIRC class, and tests for that too
2015-07-03 18:07:47 -07:00
James Lu
991e86a8cb
unittests! wow!
2015-07-03 17:05:44 -07:00