Luna
87f77e65f1
test_guilds: hotfix for missing app
2021-06-30 22:33:38 -03:00
Luna
e5f8fe7243
add test for gateway message validation error
2021-06-30 18:42:20 -03:00
Luna
bd1d756d22
black run on tests folder
2021-06-25 15:19:51 -03:00
Luna
323013cb87
Add test to ensure a removed state invalidates WS
2020-04-05 15:08:46 -03:00
Luna
8e6bbdbe19
Add test for session resumption
2020-04-05 14:46:39 -03:00
Luna
9567bf0a85
admin_api.voice: refresh lvsp regions on insert
...
closes #76
2020-01-29 19:52:44 +00:00
Luna
6e81b8d5fb
test_embeds: assert path_exists for simple case
2020-01-24 21:32:35 -03:00
Luna
c765cd7fe0
fix imports
2019-10-25 16:01:48 -03:00
Luna
2780ca4175
guilds: remove app_ param from delete_guild()
2019-10-25 10:24:20 -03:00
Luna
4d87256cc3
tests.conftest: use app_context on create_user call
2019-10-25 08:57:45 -03:00
Luna
b0ef3c4d0c
tests.conftest: use app_context for delete_user call
...
- admin_api.users: remove app arg passing
2019-10-25 08:51:52 -03:00
Luna
0cc1062c52
flake8 pass
...
- fix test_empty_embed not actually reporting on empty embeds
2019-10-25 08:06:26 -03:00
Luna
83a1c1ae29
black fmt pass
2019-10-25 07:27:50 -03:00
Luna
0bc4b1ba3f
manage.cmd.users, tests.conftest: follow new kwargs for delete_user
2019-09-30 10:55:12 -03:00
Luna
f7de5c5596
tests.common: remove login() and get_uid()
2019-07-21 13:02:19 -03:00
Luna
a26f665c81
rm tests/credentials.py
2019-07-21 13:00:42 -03:00
Luna
74c03f7dfa
fix tests
2019-07-21 12:58:51 -03:00
Luna
30902d6e8f
update many tests to the new TestClient fixture
2019-07-21 12:51:40 -03:00
Luna
7b07254741
test_cli_admin -> test_cli_staff
2019-07-21 12:34:51 -03:00
Luna
cc4e4c53a9
copy elixire test user impl
2019-07-21 12:30:52 -03:00
Luna
23c7ac2c34
test_admin_api.test_users: properly delete test users
2019-05-10 17:27:54 -03:00
Luna
268b921961
gateway.websocket: add shards field to ready
...
see https://github.com/discordapp/discord-api-docs/pull/826
2019-05-05 17:15:53 -03:00
Luna
454f368f94
tests.test_embeds: add tests for path_exists
...
- embed.sanitizer: better error handling when fetching the key
2019-04-26 17:00:01 -03:00
Luna
0631f007c1
test_websocket: add test for etf
...
- embed.sanitizer: remove unused import
2019-04-25 22:44:34 -03:00
Luna
eeaec19b2f
test_admin_api.test_guilds: add another check for unavailable guild
2019-04-22 03:51:39 -03:00
Luna
daee044a4f
admin_api.guilds: make get guild route raise GuildNotFound
...
before it was returning 200 but with a `null` inside, I don't think
that's reasonable API design.
- test_admin_api/test_guilds: add checks for GuildNotFound error code
2019-04-22 02:41:24 -03:00
Luna
4142baa84b
test_admin_api/test_guilds: add test_guild_delete
2019-04-22 02:37:29 -03:00
Luna
a6ecc84b9f
test_admin_api/test_guilds: add test_guild_update
...
- docs/admin_api.md: add note on unavailable guild object being
returned
2019-04-22 02:17:51 -03:00
Luna
d8b889c1a9
add tests/test_admin_api/test_guilds.py
...
- guilds: decouple endpoint logic into a delete_guild() function
2019-04-22 02:13:53 -03:00
Luna
e65db52c62
test_admin_api/test_users: add impl for test_user_update
2019-04-22 01:27:43 -03:00
Luna
644d755332
test_admin_api/test_users: decouple user creation and deletion
...
- remove hardcoding of 'big_girl' username on test_list_users
2019-04-22 01:11:34 -03:00
Luna
d458f22967
add test_create_user to tests/test_user.py
...
- tests.conftest: hardcode REGISTRATIONS to true
- tests/test_user: better assertions for test_get_me
2019-03-31 18:17:39 -03:00
Luna
0e57ad9633
test_websocket: use _close on test_ready
2019-03-26 23:50:10 -03:00
Luna
07c66d121a
test_websocket: add a _close helper
2019-03-26 23:47:52 -03:00
Luna
8d9ac79dbc
add guild create testing
...
related to #15 .
2019-03-26 23:43:19 -03:00
Luna
9e1db1f9b4
test_gateway: add test_heartbeat
...
- tests.conftest: hardcode IS_SSL to False
2019-03-26 01:02:06 -03:00
Luna
cc379df861
tests.conftest: add teardown to prevent overuse of resources
2019-03-16 21:13:10 -03:00
Luna
169d22ad72
test_admin_api.test_users: add impl for test_create_delete
...
- admin_api.users: fix bug
2019-03-16 20:31:28 -03:00
Luna
2dda7c1bf9
add tests.test_admin_api.test_users
2019-03-16 19:17:12 -03:00
Luna
ddb56891d1
add tests.test_admin_api.test_instance_invites
...
- admin_api.instance_invites: fixes
2019-03-16 17:38:22 -03:00
Luna
f22a9b92a9
remove voice websocket fields from configs
...
- run: remove vws spawn
- tests.conftest: rollback to unused_tcp_port fixture
2019-03-01 04:39:12 -03:00
Luna
ca5386d3ce
add VOICE_WEBSOCKET_URL to configs
...
- gateway: remove implicit /ws path, leave it up to configs
- run: fix start_websocket
2019-02-28 23:12:19 -03:00
Luna
53d7515f8c
all: update copyright year
2019-01-26 19:25:46 -03:00
Luna
2632d033fa
all: add GPL header
2018-12-07 02:14:58 -03:00
Luna
9b5902db95
tests: add test_embeds
...
- embeds.schemas: add EMBED_FIELD and EMBED_OBJECT.fields to use it
2018-12-04 22:54:39 -03:00
Luna Mendes
54fc80ea4e
tests.test_main: remove 'hewwo' content check
2018-11-21 22:06:10 -03:00
Luna Mendes
9547b5e536
tests: add test_user
...
- tests.common: add get_uid
2018-11-17 18:39:09 -03:00
Luna Mendes
a7f8852324
test.test_websocket: add test_ready_fields
...
- RatelimitManager: add a test flag to overwrite _ws.connect ratelimit
2018-11-17 04:09:22 -03:00
Luna Mendes
77c52a5c28
tests.test_websocket: add test_ready
2018-11-17 03:05:54 -03:00
Luna Mendes
069c39d29e
tests: add test_websocket.py
...
- tests.conftest: alter WEBSOCKET_URL as well
2018-11-17 02:51:07 -03:00