18 Commits

Author SHA1 Message Date
Rapptz
de941ababe Add Colour.from_str factory method
This moves the command extension parsing code over to the main library
since it can be potentially useful for others.
2022-04-20 06:49:28 -04:00
Rapptz
e541be0427 Fix tests from failing 2022-04-14 06:46:33 -04:00
Jonah Lawrence
526ed46d7a
Add tests for command descriptions 2022-04-12 18:23:26 -04:00
Rapptz
abeea73734 Fix remaining things not explicitly passing the intents kwarg 2022-04-05 23:15:40 -04:00
Josh
01e2c69b20
Add tests for validating command signature mismatch error handling 2022-04-02 04:57:05 -04:00
Rapptz
25ad5b675c Ensure explicitly set parents on nested groups are respected
This had a multiple layer bug that needed to be squashed. The first
issue was that setting `parent=...` inside a `Group` wouldn't actually
add the `Group` into the `parent` children mapping. This meant that
it didn't actually end up copying the children when it came time to
within e.g. a Cog.

The second issue was that even if it was added into the children
listing, it wouldn't properly set the attribute.

This commit fixes both of these issues.

Fix #7818
2022-04-01 09:13:27 -04:00
Josh
c11363f037
Rework File.spoiler to synchronise with the filename
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-31 09:18:36 -04:00
Bryan Forbes
0a8065606a
Update parent reference of Group children 2022-03-30 19:12:39 -04:00
Bryan Forbes
8524bfb54d
Fix caching of UnionType instead of resolved typing.Union 2022-03-28 16:24:03 -04:00
Rapptz
abcec5da9d [tasks] Use the local timezone when comparing for the start time
Fix #7676
2022-03-14 04:54:56 -04:00
Rapptz
2da6415008 Add more tests for JST regression case 2022-03-14 01:07:49 -04:00
Rapptz
f2586e9fe7 [tasks] Handle imaginary or ambiguous times due to DST transitions 2022-03-13 22:45:18 -04:00
Rapptz
6a43d60acf [tasks] Refactor tasks to not store a time index state
It's better to recompute it every time rather than suffer from
maintaining the extra state.
2022-03-13 06:20:44 -04:00
Sebastian Law
caa816a636
Add more tests for utils
Co-authored-by: Nadir Chowdhury <chowdhurynadir0@outlook.com>
2022-03-07 17:10:28 -05:00
Sebastian Law
3c78b03aa3
Test regressions for the task extension
* tests for testing regression of 19ad64a
* fix edge case for test running within 3 minutes of the start of the hour
2022-03-07 17:09:30 -05:00
Rapptz
bb5ed4947d Add regression test for optional normalisation
Also runs black on the tests file
2022-03-01 05:54:26 -05:00
Rapptz
3d0c506124 Fix test_resolve_invite due to changed type 2022-03-01 01:07:13 -05:00
Devon R
28c7cdca99
Baseline tests, basically just parts of utils right now 2022-03-01 01:02:36 -05:00