Commit graph

27 commits

Author SHA1 Message Date
Chason Chaffin
8fc7815189 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
7ebd6a9f0e 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
552146db5c 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
73f82d0ad1 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
a18e724e0b Adding tests for gametime module 2019-04-19 00:30:53 +09:00
Griatch
90b42ca6fb Fix merge conflicts 2019-03-04 22:32:51 +01:00
Griatch
fe376795ec Add partial unittests for EvEditor 2019-02-05 01:14:32 +01:00
Griatch
aa48593a40 Made all unit tests pass 2019-01-09 22:08:48 +01:00
Griatch
981119b640 Fix merge conflicts 2019-01-01 15:19:20 +01:00
Griatch
cc6c12b8be Make create_script return None if script set up to immediately fire/stop. Resolves #1663. 2018-10-27 19:08:31 +02:00
Griatch
48f334d959 Exploring strange ansi string error 2018-10-14 18:18:59 +02:00
Griatch
a1f169f8bc Work on fixing evform test case bug 2018-10-14 11:49:34 +02:00
Griatch
0b7100c3cb Correctly mock session.protocol flags 2018-10-14 09:33:52 +02:00
Griatch
ebb2fb6c1c Clean up with 2to3 2018-10-13 19:43:17 +02:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Griatch
399cc91412 Merge branch 'master' into develop 2018-09-30 14:55:31 +02:00
Henddher Pedroza
f855c9078f #1459: force evform.raw_form to have all lines of the same length - effectively a rectangle 2018-08-21 19:54:26 -05:00
Griatch
6aef654cf1 Fix unit tests 2018-07-24 20:54:21 +02:00
Griatch
9360dc71f1 Rename prototype to prototype_parent, fixing olc menu 2018-06-24 09:50:03 +02:00
Griatch
7f250cdec4 Move spawner tests into prototypes folder 2018-06-09 12:10:32 +02:00
Griatch
b12b466fe2 Auto-tag spawned objects. Clean up unit tests 2018-05-10 20:37:30 +02:00
Griatch
4f1a47e23e Add test_spawner 2018-04-16 20:18:21 +02:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
a5a8d9dd57 Some doc updates 2017-10-28 22:51:47 +02:00
Griatch
65664bf523 Add documentation to EvMenu test class 2017-10-28 22:48:06 +02:00
Griatch
d05495cc52 Add testing framework for EvMenu. Implements #1484 2017-10-28 22:33:58 +02:00
Griatch
70fea693e6 Refactor utils test suite into utils/tests/ 2017-10-07 11:27:47 +02:00