Commit graph

5656 commits

Author SHA1 Message Date
Chason Chaffin
77d15fa7b8
Fixing bug in gametime module
Previously, gametime used the length of the current year and
current month to calculate the future date in the real_seconds_until
function. This caused a small bug when passing over a leap day from
a year without a leap day.

This change uses the datetime module to just increment the year
or month, sidestepping the issue.
2019-04-19 16:19:15 +09:00
Chason Chaffin
00fc88a438
testing for bug found in gametime module
I've found a bug in the gametime module where if your date is the
year before a leap year, and the real_seconds_until function has
to adjust the date (from using an earlier month) over that leap
year, the calculation is off a day since the current function uses
the length of the current year to determine how far to skip ahead

I've changed the current test to *not* test for this bug in the
mainline test (before it was passing because I was using the output
from the current function to determine correctness) and to add a
separate test that is marked as an expected failure for now. I am
working on a fix but it is outside the scope of this PR.
2019-04-19 12:49:27 +09:00
Chason Chaffin
10c94798f4
More fixes on gametime tests
Looks like I *was* causing the previous issues by mocking time.time
2019-04-19 11:32:49 +09:00
Chason Chaffin
24e713f842
Fixing tests for new gametime tests
It appears that some mocks setup for gametime in the contrib
library were causing issues with the gametime tests. I've switched
those mocks to be patches instead so they are cleared out when
the test finishes.
2019-04-19 10:40:19 +09:00
Chason Chaffin
01a67d1d43
Adding tests for gametime module 2019-04-19 00:30:53 +09:00
Griatch
b961f282c2 Refactor/remove signal receiver module 2019-04-14 22:53:38 +02:00
Griatch
26a7d0e9e8 Add Django default signals for reference 2019-04-14 22:38:30 +02:00
Griatch
8f8ce6e45d Merge branch 'add_signals' of https://github.com/volundmush/evennia into volundmush-add_signals 2019-04-14 22:19:36 +02:00
Griatch
ca08024d1d Minor cleanups 2019-04-14 21:43:01 +02:00
Griatch
fb5dcc2eff Remove validator container, allow direct setting of options 2019-04-14 21:06:43 +02:00
Griatch
b053104a86 Rework options/optionhandler to use custom save/load functions 2019-04-14 20:29:21 +02:00
Griatch
dc3514c797 Cleanup of options methods, callables 2019-04-14 17:01:32 +02:00
Griatch
b70d8ed70f Refactor containers for inheritance and delayed loading 2019-04-14 15:37:34 +02:00
Griatch
b024c17f8a Resolve merge conflicts, some cleanup 2019-04-14 12:18:15 +02:00
Griatch
08f571bfa2 Improve script self-description 2019-04-14 11:29:17 +02:00
Griatch
76898f918c Move globalhandler into utils.containers, make settings format more flexible, default to base typeclass, add helper functions and some more lenient error handling 2019-04-14 11:24:45 +02:00
Griatch
20d09adeab Merge branch 'gscript_loader' of https://github.com/volundmush/evennia into volundmush-gscript_loader 2019-04-14 09:55:58 +02:00
Andrew Bastien
5a7ee64fc4 Fixed issue with creating new Scripts. Silly tuples! 2019-04-14 03:41:04 -04:00
Andrew Bastien
8823bb1af1 Refactored ScriptHandler into ScriptContainer. Now uses dictionaries with finer control for script launching. 2019-04-14 00:22:53 -04:00
Andrew Bastien
36aba73a32 Refactored with more consistent naming and placement. Fixed the table style wrapper. 2019-04-13 21:47:09 -04:00
Andrew Bastien
ac21c78c5a Refactored signals with better names and more of them. Put them after hook calls. 2019-04-13 18:05:15 -04:00
Andrew Bastien
37d789ee7f Added some Signals. 2019-04-12 20:16:30 -04:00
Andrew Bastien
6c5891c3a0 Cleanups. Containers created and BaseOption done better. 2019-04-11 21:06:15 -04:00
Andrew Bastien
11814691d0 Renamed GLOBAL_HANDLER to GLOBAL_SCRIPTS and cleaned up to PEP8 2019-04-11 11:29:38 -04:00
Andrew Bastien
e129cad093 Added Option Classes. 2019-04-11 10:12:16 -04:00
Andrew Bastien
60df82aca4 More draft efforts in new Options handler. @style works! 2019-04-10 21:05:04 -04:00
Andrew Bastien
4d834d17b7 Merge branches 'new_options' and 'styles_options' into full_options 2019-04-10 19:17:10 -04:00
Andrew Bastien
1b3331b495 Added VALID_HANDLER and some starting VALIDFUNCS to Evennia. 2019-04-10 01:54:17 -04:00
Andrew Bastien
3b39e818ab Fixing issue with an EvTable call. 2019-04-09 23:48:45 -04:00
Andrew Bastien
1bdeb270c4 Created basic GLOBAL_HANDLER for the Global Script API. 2019-04-09 23:42:46 -04:00
Andrew Bastien
eeed7a72b2 Fix some oversights on evtable.self stupidity. 2019-04-09 22:38:11 -04:00
Andrew Bastien
f373477fc5 Finished presentation-grade version of @style. 2019-04-09 22:35:25 -04:00
Griatch
841b07fce0 Streamline batch-spawn mechanism 2019-04-07 23:13:38 +02:00
Griatch
a398cc2a37 Refactor mail contrib with CmdMail, CmdMailCharacter etc. Resolves #1802 2019-04-07 21:50:27 +02:00
Griatch
ea93431bd5 Fix batchprocessor IOError. Resolve #1814. 2019-04-07 14:13:49 +02:00
Griatch
e3af3f148b Update CHANGELOG with latest changes 2019-04-07 10:23:57 +02:00
Griatch
92c7e78ed8 Merge branch 'dockerfile-python3' of https://github.com/amfl/evennia into amfl-dockerfile-python3 2019-04-07 09:21:00 +02:00
Griatch
c9fdd8adca Fix minor typo 2019-04-07 00:34:01 +02:00
Griatch
38aa111763 Tweaking CSS styles/unicodes a little 2019-04-07 00:26:37 +02:00
Griatch
213429f7d2 Merge branch 'goldenlayout_develop' of https://github.com/friarzen/evennia into friarzen-goldenlayout_develop 2019-04-06 21:02:47 +02:00
Brenden Tuck
5c4dee4c64 Lint under_scores to CamelCase 2019-04-06 14:04:05 -04:00
Griatch
1d1aebbebc Fix typo 2019-04-06 09:32:22 +02:00
Griatch
b6fb8ed00d Merge branch 'develop' of github.com:evennia/evennia into develop 2019-04-06 09:25:16 +02:00
Griatch
16df9f842b Test with codacity coverage setup 2019-04-06 09:25:04 +02:00
Brenden Tuck
764f84d5d2 Clean up a use-before-load dependency error and lint 2019-04-05 21:34:51 -04:00
amfl
7665a971d4 Update Dockerfile to python3
Changed from alpine -> python:3.7-alpine due to alpine only having
python3.6 in repos. Some packages have changed as a result.
2019-04-04 19:11:26 +13:00
amfl
308b9c2cdf Remove zope __init__.py workaround, not needed for py3.3+.
It causes problems when zope is installed in a read-only location
2019-04-04 19:08:43 +13:00
Brenden Tuck
9ffbb72d8c Lint fixes 2019-04-03 17:18:27 -04:00
Griatch
c873dfea29
Merge pull request #1806 from volundmush/ex_attrcategory
Changed @examine to list Attribute categories.
2019-04-03 19:28:41 +02:00
Andrew Bastien
df16cbab47 Fixed the rest of @examine. Attribute checks should work now. 2019-04-03 02:53:19 -04:00