Commit graph

151 commits

Author SHA1 Message Date
Griatch
a342353fd6 Add a slight delay to telnet handshake to give mudlet a chance to catch up 2018-01-01 20:58:48 +01:00
Ryan Stein
cd21fb2396 Use Python 3's new super() convention. 2017-11-02 10:41:41 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Scyfris Talivinsky
b6649bcef8 Add a @spawn unit test
Tests the @spawn command and its variations.  The test is designed to
aslo check the properties of the spawned objects for some common/obvious
settings.

Test also adds a new prototypes file to be used with the Evennia unit
tester for any tests that require named prototypes.  The spawner test
requires testing named prototypes, so it is added in this change.
2017-10-06 01:59:45 -07:00
Nicholas Matlaga
6d80c973da Added basic Typeclass support to @tunnel 2017-09-19 16:52:24 -04:00
Vincent Le Goff
64e327fdd2 Add a confirmation to the default @destroy command 2017-09-01 15:41:35 +02:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
c43059c75f Rework at_before_say/at_say to handle whispers and using kwargs. 2017-07-21 12:17:47 +02:00
Griatch
8600e8c546 Fix merge conflicts with say-branch 2017-07-21 11:06:38 +02:00
Griatch
6d846c6c82 Add help entry to project_rename utility.
Also merge in latest master changes to devel branch.
2017-07-13 20:33:32 +02:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Vincent Le Goff
d6f2d6a305 Add the UnixCommand, to parse unix-like command options 2017-06-17 16:35:57 -07:00
Griatch
5a370a36ea Merge branch 'master' into devel 2017-06-17 22:21:00 +02:00
Vincent Le Goff
bda06acac6 Add the InterruptCommand exception to cleanly interrupt commands 2017-06-15 21:49:20 -07:00
Griatch
f9e7b01f57 Add **kwargs options to at_* hooks to all typeclasses, for greater flexibility for users. Resolves #1276. 2017-04-20 20:58:35 +02:00
Griatch
a648433db8 Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel. 2017-04-01 16:08:23 +02:00
Vincent Le Goff
a5b26df330 Create hooks for the whisper command 2017-03-28 12:07:17 -07:00
Vincent Le Goff
4c4b97f994 Make sure CommandTest.call() returns the received message as is 2017-03-25 13:08:59 -07:00
Vincent Le Goff
465a6336c5 The TestCommand.call() now returns the received message 2017-03-25 10:36:25 +01:00
Griatch
b73a0f8f8c Some minor language fixes. 2017-03-01 08:08:27 +01:00
CloudKeeper1
23a053c213 Added test for whisper command. 2017-03-01 08:08:27 +01:00
Griatch
5a723697e7 Add unittests to tutorial world mob, objects and most rooms as per #1105. 2017-02-19 23:48:24 +01:00
Griatch
8ee817ce8b Fix lingering references to old perms/locks to resolve unittests. 2017-02-18 12:00:27 +01:00
Griatch
0bd47f0c52 Change permission strings so Immortals->Developer, Wizards->Admin, Builders->Builder, PlayerHelper->Helper, Players->Player, Guests->Guest. Made perm() and pperm() lock function accept both the plural and singular form (so both Admin and Admins work). Still lacking a data migration for updating an existing database to the new setup. 2017-02-17 23:25:09 +01:00
Griatch
22e57db4a7 Fix errors in testing. 2017-02-17 09:32:15 +01:00
Griatch
1fbb4c4358 Add functioning prefix-ignorer and cleanup of code. 2017-02-17 09:19:55 +01:00
Simon Vermeersch
254a746770 Allows testing when msg is called with a tuple as first argument 2017-02-05 12:19:16 +01:00
Griatch
45123412af Further increased test coverage of the extendedroom contrib by testing the commands. 2016-11-26 17:25:26 +01:00
Griatch
cd9c11f6a8 Fix edge cases in channelhandler and make unittests work. 2016-10-16 19:04:05 +02:00
Griatch
a467d2984e Make TestCommand unittest base handle non-text outputfuncs from msg() calls. This is done by primarily using text, and if that is None, by converting the entirety of the alternative kwargs to strings. Implements #1091." 2016-10-13 20:13:13 +02:00
Griatch
a740099d3f Fixed unittests to work correctly with |-style colors. 2016-08-06 20:19:22 +02:00
Griatch
fba6e079c1 Finalize nick-templating; still issues with other places using nicks, such as channels. 2016-06-26 00:41:57 +02:00
Griatch
ad158e1816 Fixed unittests for wclient branch 2016-05-22 20:45:40 +02:00
Griatch
83570848d6 Made all unittests pass again. 2016-05-22 20:45:38 +02:00
Griatch
7e0b372273 Fixed the unittest for the py command. 2016-04-12 23:51:45 +02:00
Griatch
340f68f1eb Updated tests to run with updated output with dbrefs 2016-03-22 18:50:11 +01:00
Griatch
7de036c1d9 Merged nested inlinefuncs from the dev branch. Added |-style ansi-markers. Resolves #818. 2015-11-28 20:30:01 +01:00
Griatch
d496606a3c Further development of the reworking of systems using Sessions rather than session id. 2015-11-14 20:32:58 +01:00
Griatch
17418befcd Fixed unittest for help entries 2015-03-22 09:42:51 +01:00
Griatch
ac277b1e5f Updated unittests for new options command. 2015-03-17 00:06:14 +01:00
Jonathan Piacenti
be13998771 Patched up tests. 2015-02-28 09:49:41 +01:00
Jonathan Piacenti
c03bac5efd Upgrade test runner to derive from DiscoveryRunner. 2015-02-23 15:06:30 +01:00
Jonathan Piacenti
584d94b32b Use Mocks to handle test cases. 2015-02-23 15:06:30 +01:00
Griatch
07dd81851e Fixed some bugs in new oobhandler mechanism to make tests work again, but oobhandler is still not tested. 2015-02-13 08:09:29 +01:00
Griatch
0115db3805 Reworked batchprocessor to correctly handle paths. Started looking at changing loation of some other folders. 2015-02-09 22:18:52 +01:00
Griatch
91608d7787 Fixed test of quit to handle slightly different output text 2015-02-09 02:35:14 +01:00
Jonathan Piacenti
52fa4dd60b Made test running environment more robust and consistent. 2015-02-08 18:34:12 -06:00
Griatch
515ce71d65 Reworked Evennia now passes the unit tests 2015-01-09 00:10:18 +01:00
Griatch
0c9bf08c5a Refactored and fixed a lot of bugs. Creates the database but still does not properly load the settings file. 2015-01-08 01:25:32 +01:00
Griatch
3ff937a6fd Updated commands to use new evennia path. 2015-01-07 14:31:35 +01:00