Commit graph

224 commits

Author SHA1 Message Date
Griatch
458df00272 Fix bugs in format_grid, include verbatim elements 2020-04-11 13:28:24 +02:00
Griatch
c9cab183f5 Further fixes to format_grid 2020-04-11 11:33:13 +02:00
Griatch
2a18cb0a2d Better indexing of help suggestions with lunr, better display 2020-04-11 09:42:22 +02:00
Andrew Bastien
8c5fdbe27f Adding unit tests for ANSIString! 2020-01-30 06:15:43 -05:00
Griatch
62bde6fd07 Fix unit test 2020-01-20 23:24:50 +01:00
Griatch
bfe533441e Make options accept default kwarg, add new raise_exception. Fix datetime validatorfunc accoring to spec. Resolves #1967. 2020-01-20 23:20:05 +01:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
4ea6209123 Ran black on branc 2019-12-16 20:31:42 +01:00
Griatch
a4dd7016c7 Merge pull request #1973 from Henddher/unit_tests3
Increase coverage in evennia/utils/eveditor.
2019-10-27 20:28:04 +01:00
Griatch
c5b132e5b1 Merge pull request #1977 from Henddher/issue1970
validatorfuncs.duration() returns incorrect datetime.timedelta() Closes #1970
2019-10-27 20:26:31 +01:00
Griatch
f942430d27 Merge pull request #1969 from Henddher/unit_test2
Unit tests for evennia/utils/text2html.
2019-10-27 20:24:39 +01:00
Henddher Pedroza
56ab5d32a5 Fix issue in validatorfuncs.timedelta() in which days and years (in days) aren't added to create datetime.timedelta(days=days, ...) 2019-10-24 21:27:39 -04:00
Henddher Pedroza
e9a48d57d6 Skip tests that accept errors in text2html/ansi parser. 2019-10-24 20:34:07 -04:00
Griatch
8ee9eb5eef Merge pull request #1967 from Henddher/unit_tests
Tests for evennia/utils/validatorfuncs.
2019-10-24 18:45:03 +02:00
Henddher Pedroza
fe07390801 Increase coverage in evennia/utils/eveditor. 2019-10-20 19:55:39 -04:00
Henddher Pedroza
96ef293ab7 Increase coverage in evennia/utils/eveditor. 2019-10-20 19:31:24 -04:00
Henddher Pedroza
22ef740577 Increase coverage in evennia/utils/eveditor. 2019-10-20 18:50:42 -04:00
Henddher Pedroza
f1933b7dac Increase coverage in evennia/utils/eveditor. 2019-10-20 17:36:46 -04:00
Henddher Pedroza
56026253dc Increase coverage in evennia/utils/text2html. 2019-10-19 22:16:51 -04:00
Henddher Pedroza
7ceef9a54a Increase coverage in evennia/utils/text2html. 2019-10-19 21:55:32 -04:00
Henddher Pedroza
7d05b3ac0d Increase coverage in evennia/utils/text2html. 2019-10-19 21:10:26 -04:00
Henddher Pedroza
cea0e1a0a4 Increase coverage in evennia/utils/text2html 2019-10-19 20:39:40 -04:00
Henddher Pedroza
77965fadd3 Increase coverage for evennia/utils/text2html 2019-10-19 19:16:36 -04:00
Henddher Pedroza
9e38cef5ff Unit tests for evennia/utils/text2html. 2019-10-19 18:32:42 -04:00
Henddher Pedroza
d32d0e4c15 Increase coverage for validatorfuncs.lock(). 2019-10-16 21:26:04 -04:00
Henddher Pedroza
ce84fc86ae Increase coverage for validatorfuncs.lock(). 2019-10-16 21:14:01 -04:00
Henddher Pedroza
c91f6d547b Remove lints in test_validatorfuncs. 2019-10-16 20:51:35 -04:00
Henddher Pedroza
04b72cbe91 Increase coverage for evennia/utils/validatorfuncs.unsigned_integer and .positive_integer. 2019-10-16 20:45:53 -04:00
Henddher Pedroza
7f14d3a167 validatorfuncs.future must create utcnow() time-aware so comparison with generated datetime can be done. 2019-10-16 20:11:59 -04:00
Griatch
bc5210eb9c Fix examine using wrong cmdset target for accounts. Resolve #1886 2019-10-17 00:15:09 +02:00
Henddher Pedroza
0244518aac Comment out tests for future() as implementation doesn't handle naive vs aware timezones correctly. 2019-10-14 22:49:05 -04:00
Henddher Pedroza
49626a8657 Tests for evennia/utils/validatorfuncs.
- future()
- signed_integer()
- positive_integer()
- unsigned_integer()
- boolean
- timezone
- email
- lock
2019-10-14 22:38:31 -04:00
Henddher Pedroza
53c99204e0 Tests for evennia/utils/validatorfuncs.
- text()
- color()
- datetime()
- duration()
2019-10-14 20:58:52 -04:00
Henddher Pedroza
b581c40cd0 Increase coverage in BatchCodeProcessor.code_exec(). 2019-10-13 20:01:32 -04:00
Henddher Pedroza
9e90f3ad4f Remove lint warnings from test_batchprocessors. 2019-10-13 19:45:15 -04:00
Henddher Pedroza
0bf90d817c Tests for BatchCodeProcessor. 2019-10-13 19:34:10 -04:00
Henddher Pedroza
8af98f0ab0 TestBatchCommandProcessor with incorrect #INSERT 2019-10-13 18:13:31 -04:00
Henddher Pedroza
09825c2a6d TestBatchCommandProcessor with #INSERT 2019-10-13 17:45:14 -04:00
Henddher Pedroza
de5073e916 Addition of TestBatchCommandProcessor. 2019-10-13 16:59:28 -04:00
Henddher Pedroza
903bf1663e Tests for batchprocessors error conditions. 2019-10-13 00:29:06 -04:00
Griatch
0dbfa38f20 Black style correction 2019-10-01 21:32:44 +02:00
Domenic Barbuzzi
bfca8c8552 Update unit tests for utils.latinify 2019-10-01 14:42:26 -04:00
Domenic Barbuzzi
8058e01e06 Remove resolved comment 2019-10-01 12:59:15 -04:00
Domenic Barbuzzi
96d5734e51 Update utils.latinify to support Python 3 2019-10-01 12:11:11 -04:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Greg Taylor
da48fa2e52 Refactor mod_import to use importlib
Switch from the deprecated imp to importlib. Also add tests and
clean up logic flow. This should be quite a bit faster than the
old implementation as well.
2019-09-15 20:21:50 -07:00
Griatch
18a09e341c Fix time format Windows does not support. Resolve #1881. Resolve #1880 2019-08-29 00:10:46 +02:00
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