Commit Graph

393 Commits

Author SHA1 Message Date
Jeremy Fincher
8f475fdcdd The command finder function (I forget the name) would find serendipitously named methods in PrivmsgRegexp, and that's bad. Fixed and added a test for the known case of it. 2003-09-02 07:30:35 +00:00
Jeremy Fincher
83707f81c1 Added normalizeWhitespace. 2003-09-01 18:39:27 +00:00
Jeremy Fincher
85caaf6696 Fixed bug in automatic canonicalNaming of non-commands. 2003-09-01 06:47:22 +00:00
James Vega
38f801fc9f Added thorough testing of new lart/praise functionality 2003-09-01 06:10:05 +00:00
Jeremy Fincher
7ae25e44b9 Removed stupid for loops that I forgot to remove when I removed the debug.printfs. 2003-09-01 06:00:38 +00:00
Jeremy Fincher
1461535b5d Added test for no reason other than to make sure something worked before suggesting it to someone. 2003-09-01 05:20:43 +00:00
Jeremy Fincher
c891592b59 Fixed bug in strlen where it didn't account for spaces. 2003-08-30 22:54:11 +00:00
Jeremy Fincher
36ecc4fcf6 Added zen command. 2003-08-30 19:23:34 +00:00
Jeremy Fincher
442392b5ba Guarded inserts into sys.path. 2003-08-30 19:20:08 +00:00
Jeremy Fincher
7a51fccaf9 Removed some debug.printfs. 2003-08-30 19:19:39 +00:00
Jeremy Fincher
cdd180a37c Forgot to move test over to Http with the kernel command. 2003-08-30 19:16:06 +00:00
Jeremy Fincher
1cd7ccbfa4 Found bug in perlReToPythonRe and fixed it. 2003-08-30 18:39:19 +00:00
Jeremy Fincher
465ab3a591 Added test for case-insensitivity in key lookup. 2003-08-29 07:33:35 +00:00
Jeremy Fincher
953fe860b3 Made error messages more elucidating in PluginTestCase. 2003-08-29 07:33:13 +00:00
Jeremy Fincher
e48024f001 Added a (almost useless) test for ChannelDB. 2003-08-29 06:57:14 +00:00
Jeremy Fincher
60c598be87 Wrote tests and fixed lots of bugs and usability flaws. 2003-08-29 06:32:49 +00:00
Jeremy Fincher
22fcd451e8 Made sure the data directory is pristine before each test. And fixed a typo. 2003-08-29 00:42:04 +00:00
Jeremy Fincher
37f88d5e21 Added more tests and the lasturls command (and --nolimit option to the lasturl command. 2003-08-29 00:40:28 +00:00
Jeremy Fincher
6d7e68fa71 Added tests, fixed the bugs the tests found. 2003-08-28 23:59:03 +00:00
Jeremy Fincher
6066376c6d Handled more user-friendlyily the case where they forget to make plugins a tuple and just put a string in PluginTestCase.plugins. 2003-08-28 23:33:31 +00:00
Jeremy Fincher
63eb848946 Added tests for error conditions. 2003-08-28 22:26:48 +00:00
Jeremy Fincher
b6a70d0dae Tested basic functionality (not ) 2003-08-28 21:39:19 +00:00
Jeremy Fincher
db5c58b98b Added test for bad modified date. 2003-08-28 17:55:31 +00:00
Jeremy Fincher
550f0fb3de Forgot return after irc.error and added test for non-existent location. 2003-08-27 22:30:48 +00:00
Jeremy Fincher
8d669471ba Added assertNotRegexp to PluginTestCase. 2003-08-27 16:03:12 +00:00
Jeremy Fincher
575656992e Fixed bug in weather, added test for it; added example string. 2003-08-27 16:01:51 +00:00
Jeremy Fincher
bb1bdd2725 Added tell command. 2003-08-27 07:46:03 +00:00
Jeremy Fincher
6b0fbdc324 Had translate instead of babelize in testBabelize. 2003-08-26 18:22:05 +00:00
Jeremy Fincher
19a9804dee Added a test and fixed several bugs it found. 2003-08-26 18:10:17 +00:00
Brett Kelly
23321ca960 adding Notes test case 2003-08-25 20:49:22 +00:00
Jeremy Fincher
edebbe448c Removed some debug.printfs. 2003-08-25 20:14:40 +00:00
Jeremy Fincher
95d689005a Raised the debug.minimumDebugPriority so output during tests isn't so ugly. 2003-08-25 20:14:20 +00:00
Jeremy Fincher
e30cf69ec1 Added privmsgs.thread, and so nuked ThreadedFunCommands (subsumed into FunCommands) 2003-08-25 19:34:25 +00:00
Jeremy Fincher
17f00fbeb3 Updated PluginTestCase to allow asynchronous test cases and added test_TwistedCommands.py. 2003-08-25 18:54:37 +00:00
Jeremy Fincher
ad8159751f Added fortune command and some more tests. 2003-08-25 07:55:08 +00:00
Jeremy Fincher
c6f1d74d34 Tested to make sure capitalization didn't matter. 2003-08-25 06:29:44 +00:00
Jeremy Fincher
12ec2a805b Initial checkin. 2003-08-25 06:15:10 +00:00
Jeremy Fincher
5bf5938ff2 Initial checkin. 2003-08-25 05:53:33 +00:00
Jeremy Fincher
65af25467a Raise exception in PluginsTestCase.setUp if no self.plugins. 2003-08-25 05:25:24 +00:00
Jeremy Fincher
0f8350528b Initial checkin. 2003-08-25 05:24:58 +00:00
Jeremy Fincher
d7ec79dde8 Initial checkin. 2003-08-25 05:19:10 +00:00
Jeremy Fincher
6cc3103656 Added PluginTestCase.{getMsg,assertNoResponse} and a timeout option to some commands. 2003-08-25 05:12:43 +00:00
Jeremy Fincher
7851f3a502 Added test for Utilities module. 2003-08-25 05:12:01 +00:00
Jeremy Fincher
5b2cc92917 Weather now works. This is gotenks2's commit. 2003-08-23 13:00:24 +00:00
Jeremy Fincher
a7826bdc34 Added any/all sequence predicates. 2003-08-23 12:08:14 +00:00
Jeremy Fincher
53d883710e Added unCommaThe function. 2003-08-23 07:57:04 +00:00
Jeremy Fincher
1ebfb82353 Fixed a test or two. 2003-08-23 03:47:22 +00:00
Jeremy Fincher
270982d422 Has more useful failure messages and does proper tearDown of the irc object now. 2003-08-23 03:47:00 +00:00
James Vega
3c2ce0164a Added support for: created by, requested by, # requests to lart/praise/excuse/insult related functions
Added more error checking
Added a simple pluralizer
Added tests to stress lart/praise/excuse/insult portions of FunDB
2003-08-22 21:34:33 +00:00
James Vega
274ce40b0f Updated the tests to stress more possibilities 2003-08-22 21:32:06 +00:00
James Vega
24005d3df1 FunDB: Made more general get/remove/num/add commands to consolidate getlart, numinsults, et.al.
test_FunDB: Started adding tests for FunDB
2003-08-22 05:36:53 +00:00
James Vega
f3af416c0a Added tests for the babelfish commands (translate, babelize, randomlanguage). 2003-08-21 18:05:24 +00:00
Jeremy Fincher
6bfd991947 commaAndified timeElapsed. 2003-08-21 16:31:11 +00:00
Jeremy Fincher
4858770ee7 Ew, modified the original argument in utils.commaAndify. 2003-08-21 11:47:43 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
Jeremy Fincher
01eb6934ef Added function commaAndify to turn a list of strings into a proper English foo, bar, and baz string. 2003-08-20 09:24:57 +00:00
Jeremy Fincher
7fd35a1071 Made some changes to satisfy PyChecker. 2003-08-19 10:38:45 +00:00
Jeremy Fincher
6560f9e7ae Finally removed all the known bugs. 2003-08-18 07:10:17 +00:00
Jeremy Fincher
e05a0d18c9 Found a bug, wrote a test, yay. 2003-08-18 06:58:37 +00:00
Jeremy Fincher
5ab19c44ce Added test for new snarfing output. 2003-08-18 06:49:00 +00:00
Jeremy Fincher
2c6f505bea Added vim modelines. 2003-08-17 22:13:10 +00:00
Jeremy Fincher
0f4a78dc2d Added a snarfer for stats links and refactored. 2003-08-17 22:01:26 +00:00
Daniel DiPaolo
e2e277df0f * added a test for utils.findBinaryInPath 2003-08-17 21:16:02 +00:00
Jeremy Fincher
2b79b6501f A few updates to the spell command, and some tests. 2003-08-17 19:15:37 +00:00
Jeremy Fincher
f2bb968030 Added a few more test cases to testDQRepr and made it less fragile. 2003-08-17 06:26:50 +00:00
Jeremy Fincher
f9928ba41f Oops, forgot to re-enabled non-testOrd tests when I committed. 2003-08-17 06:26:00 +00:00
Jeremy Fincher
384393d386 Re-enabled the part that says how many asserts there are. 2003-08-17 06:25:41 +00:00
Jeremy Fincher
14043d28e2 Tyop. 2003-08-17 02:07:40 +00:00
Jeremy Fincher
b78cabaed5 Wrote some more tests for FunCommands; found some bugs in the process. 2003-08-17 02:02:53 +00:00
Jeremy Fincher
074268ffe6 Added some tests and fixed a bug they found in the title command. 2003-08-15 17:40:14 +00:00
Jeremy Fincher
bbf0f711bf Added assertError, assertRegexp, and assertRegexps to PluginTestCase 2003-08-15 06:24:44 +00:00
Jeremy Fincher
0415251146 Added assertNoError to PluginTestCase 2003-08-15 02:28:51 +00:00
Jeremy Fincher
d25b3894d7 Fixed bug in calc. 2003-08-15 00:42:35 +00:00
Jeremy Fincher
2a4c2ea185 Nuked ircutils.nick. Good riddance. 2003-08-12 19:12:12 +00:00
Jeremy Fincher
feda60aff2 Updated some tests. 2003-08-11 17:06:42 +00:00
Jeremy Fincher
2760c1bce0 Added group and test for group. 2003-08-11 07:12:41 +00:00
Jeremy Fincher
09f2ae8412 Made PluginTestCase handle multiple plugins. 2003-08-11 05:15:16 +00:00
Jeremy Fincher
0c8ee83f92 Reduced the number of rot13 asserts to 10. 2003-08-11 05:10:36 +00:00
Jeremy Fincher
1a05dc957b Made PluginTestCase handle threaded plugins properly. 2003-08-11 05:09:59 +00:00
Jeremy Fincher
d7990d874e Added first plugin test case, mostly for example. 2003-08-10 11:22:53 +00:00
Jeremy Fincher
84b96108b5 Added TestCase subclass for testing plugins. (Also removed Cmd class from previous attempt) 2003-08-10 11:22:18 +00:00
Jeremy Fincher
58453cc480 Added a minimal test for schedule. 2003-08-07 10:10:23 +00:00
Jeremy Fincher
36996dd3cf Updated stuff for 2.3 to break 2.2 compatibility :) 2003-08-07 02:48:44 +00:00
Jeremy Fincher
5ec5b997ca Made safeArgument handle colors correctly. 2003-08-01 23:48:02 +00:00
Jeremy Fincher
7a281d5e4b Fixed some mircColors indiscretions and added a test for the new (proper) behavior. 2003-07-25 04:00:38 +00:00
Daniel DiPaolo
0e16b70f8b * added mircColor() function to ircutils as well as mircColors dict
* added test cases for this function
* implemented nick coloring for Relay
2003-07-23 05:29:16 +00:00
Jeremy Fincher
f8a54c4872 Fixed irclib.Channel to use ircutils.nick on its stuff. 2003-06-16 04:56:06 +00:00
Jeremy Fincher
7d594954f7 Added another assert for proper IndexError raising. 2003-06-04 04:36:30 +00:00
Jeremy Fincher
ae3623f49f Added two more tests. 2003-06-02 22:02:28 +00:00
Jeremy Fincher
0cfde66a7e Fixed a few tests. 2003-05-29 17:07:45 +00:00
Jeremy Fincher
09340376cb Changed utils.timeElapsed to use just a seconds instead of a now/then argument. 2003-05-20 15:37:25 +00:00
Jeremy Fincher
8a5e50b55a Added show of how many asserts were done. 2003-04-29 13:02:09 +00:00
Jeremy Fincher
26a457920e Added slice support to queue. 2003-04-29 13:00:43 +00:00
Jeremy Fincher
54788a643a Some slightly new helper functions and stuff. 2003-04-29 07:37:54 +00:00
Jeremy Fincher
0aa5ece16a Trying new syncmail, added Cmd class. 2003-04-24 07:58:16 +00:00
Jeremy Fincher
3f764eab0f Added more tests. 2003-04-23 07:24:35 +00:00
Jeremy Fincher
8fa7c95067 Somehow these didn't get updated when I moved queue to structures. 2003-04-22 11:13:03 +00:00
Jeremy Fincher
ca4ad3882f Initial import. 2003-04-22 08:27:11 +00:00
Jeremy Fincher
ebb30d7530 New tests. 2003-04-21 04:39:11 +00:00
Jeremy Fincher
5c6a6b60a0 Changed tests to be more thorough. 2003-04-20 21:57:26 +00:00
Jeremy Fincher
7e1eb72849 Forgot to change test.py based on change in testing module names. 2003-04-20 17:16:43 +00:00
Jeremy Fincher
aa3e7da7d6 Whitespace. 2003-04-18 08:24:55 +00:00
Jeremy Fincher
06b3929a12 Naming scheme change. 2003-04-17 08:51:05 +00:00
Jeremy Fincher
984e29e9c0 Initial import; new naming scheme. 2003-04-17 08:49:14 +00:00
Jeremy Fincher
a11f302c9d Added perlReToPythonRe and perlReToReplacer and associated tests. 2003-04-16 05:26:24 +00:00
Jeremy Fincher
ab1d8cecd6 Fixed typo in irclib, forgot to fix it here. 2003-04-14 07:22:06 +00:00
Jeremy Fincher
31d2de0d9a Added nice 'nicks' attribute. 2003-04-14 07:21:27 +00:00
Jeremy Fincher
18d9d5923d Rewrote Alias implementation 2003-04-14 04:55:28 +00:00
Jeremy Fincher
6287d61d9e Added dqrepr. 2003-04-12 12:50:20 +00:00
Jeremy Fincher
d596752a5f Fixed bug (no __delitem__) in IrcDict and added test. 2003-04-11 20:44:29 +00:00
Jeremy Fincher
021f8b6970 Added more tests. 2003-04-11 07:12:33 +00:00
Jeremy Fincher
67cbd8327d Closed bug 715763, 'Several JOIN commands don't allow specification of a key' 2003-04-10 07:56:41 +00:00
Jeremy Fincher
227f6e1e53 Made isIP actually test properly and added tests. 2003-04-10 07:36:49 +00:00
Jeremy Fincher
c1dd8204f8 Fixed isNick to allow digits and added test. 2003-04-10 07:29:08 +00:00
Jeremy Fincher
63279606d9 Added test for MaxLengthQueue. 2003-04-09 18:41:41 +00:00
Jeremy Fincher
2c97e73617 Added changes for world.testing and inserted 'plugins' into the sys.path. 2003-04-08 07:25:16 +00:00
Jeremy Fincher
96d5355219 Added more tests. 2003-04-08 07:24:38 +00:00
Jeremy Fincher
16374c53d6 Fixed bug (and added test) in distance. 2003-04-06 15:10:14 +00:00
Jeremy Fincher
ec2908bc6c Added more tests. 2003-04-06 12:28:56 +00:00
Jeremy Fincher
ec88721cb2 Made queue pickle-able. 2003-04-05 14:00:40 +00:00
Jeremy Fincher
2aecb6b390 Added more tests 2003-04-05 13:35:45 +00:00
Jeremy Fincher
b6608b9643 Added flatten. 2003-04-05 13:35:25 +00:00
Jeremy Fincher
1d23d06d20 Added tests for isAction and unAction 2003-04-05 12:33:28 +00:00
Jeremy Fincher
27c88542c7 Added commented-out test for when slice support is added to queue. 2003-04-05 12:26:13 +00:00
Jeremy Fincher
6f49bd2813 Added a few more tests. 2003-04-05 12:23:53 +00:00
Jeremy Fincher
a50643c025 Added soundex to utils (along with a test) and to FunCommands. 2003-04-05 11:23:28 +00:00
Jeremy Fincher
4790d580ef Initial import. 2003-04-05 10:41:08 +00:00
Jeremy Fincher
d0a569eb31 Added rawmsgs, msgs, and getMsgs for easy test messages. 2003-04-05 10:32:14 +00:00
Jeremy Fincher
eed4d68485 Initial import. 2003-04-05 10:31:24 +00:00
Jeremy Fincher
cf5af96ad0 Added __getitem__ and __setitem__ tests, as well as an IterableMap test. 2003-04-05 10:29:16 +00:00
Jeremy Fincher
e962cc1d77 Added test for abbrev and fixed a bug it found. 2003-04-04 16:14:58 +00:00
Jeremy Fincher
100d0fa016 Added levenshtein distance 2003-04-04 15:49:24 +00:00
Jeremy Fincher
c88b43122e Initial import. 2003-04-04 09:54:27 +00:00
Jeremy Fincher
9a39417fcf Added more tests. 2003-04-04 09:06:31 +00:00
Jeremy Fincher
b7e11b87c0 Initial import. 2003-04-04 08:32:41 +00:00
Jeremy Fincher
1855bafe45 Added more tests 2003-04-04 08:31:38 +00:00
Jeremy Fincher
69cbe9f85a New tests 2003-04-03 09:27:11 +00:00
Jeremy Fincher
fa1073787a Initial import 2003-04-03 08:32:56 +00:00
Jeremy Fincher
f82383e44f Changed default verbosity 2003-04-03 08:17:00 +00:00
Jeremy Fincher
6b4636e8ae Fixed bug in argument handling 2003-04-03 07:11:39 +00:00
Jeremy Fincher
c3ecba3550 Initial import 2003-04-03 07:09:55 +00:00
Jeremy Fincher
0984db5503 Basic test running added 2003-04-03 06:59:00 +00:00
Jeremy Fincher
a75910dafc Initial import (placeholder) 2003-04-02 22:30:34 +00:00