Wykres commitów

159 Commity (f73de3e699626fd7ef42a348bd7ab8f911a5b698)

Autor SHA1 Wiadomość Data
Ivan Habunek f73de3e699
Fix how urwidgets are vendeored
Should be done inside `toot` so that it doesn't clash when people have
toot installed alongside python-urwidgets.
2025-08-25 08:28:17 +02:00
Ivan Habunek c907973f88
Add tests for polls commands 2025-08-06 10:06:47 +02:00
Ivan Habunek 9c15d2ca16
Show exception on test failure 2025-08-06 09:42:46 +02:00
Ivan Habunek e189ec5f6a
Fix timeline integration tests 2025-08-06 09:30:08 +02:00
Ivan Habunek de66936067
Don't reuse users when testing
Creating a new user for each test makes it safer as user data will not
leak between tests.
2025-08-06 09:28:52 +02:00
Ivan Habunek 6de2354500
Fix tests compatibility with click 8.2 2025-08-06 09:01:54 +02:00
Ivan Habunek 4d72b1b6c8
Use dateutil to parse datetimes
This solves the problem of various servers returning differently
formatted datetimes.

issue #523
2025-03-06 09:47:29 +01:00
Ivan Habunek bfcf623448
Test new timeline commands, tweaks 2025-01-16 15:09:21 +01:00
Ivan Habunek 89035accc3
Fix tests 2025-01-16 14:38:42 +01:00
Ivan Habunek 38dfd747f6
Add batched helper 2025-01-12 12:02:30 +01:00
Ivan Habunek 39ff728119
Fix deprecation warning 2024-11-27 19:45:48 +01:00
Ivan Habunek 76bb1b5484
Add post --reply-last option
fixes #464
2024-09-22 22:14:36 +02:00
Ivan Habunek 3ff9bc7942
Use assert_ok helper for better testing errors 2024-09-22 22:14:36 +02:00
Ivan Habunek b97a995dc4
Add assert_ok helper 2024-04-21 10:03:10 +02:00
Daniel Schwarz 0fc2ec12f5
Display images 2024-04-13 08:28:28 +02:00
Ivan Habunek 968a516f76
Remove unused helpers 2024-04-06 15:06:59 +02:00
Ivan Habunek 38eca67905
Fix bug in run_with_retries, better types 2024-04-06 15:05:47 +02:00
Ivan Habunek bf12dbff70
Use a stronger password in tests
gotosocial registration fails with a weak password
2024-04-06 13:15:36 +02:00
Ivan Habunek ee98ce3746
Fix following tests 2024-03-09 09:54:46 +01:00
Ivan Habunek 0cbb8863b3
Start some docs for testing 2024-03-09 09:43:02 +01:00
Ivan Habunek 43f51cbbb9
Make tests a bit more robust
By creating a new user we don't need to check if we're following or
blocking them before running the test.
2024-03-09 09:24:00 +01:00
Kian-Meng Ang 2d0089893f Fix typos
Found via `codespell -L fo,te,oll`
2024-01-08 02:59:35 +08:00
Ivan Habunek 5a26ab4940
Don't access the database in tests
This requires the mastodon instance to be patched so that email
confirmation is not required, but makes it possible to run tests on a
remote instance.
2024-01-02 21:56:51 +01:00
Ivan Habunek 724f27f860
Remove unused imports 2024-01-01 12:14:15 +01:00
Ivan Habunek d1fe0ca92d
Replace sleeps in tests with retries 2024-01-01 12:12:08 +01:00
Ivan Habunek 301c8d21df
Add test util function for retrying tests 2024-01-01 11:14:04 +01:00
Ivan Habunek 3a147a5ea0
Move Run type alias to conftest
It's only used in tests
2024-01-01 09:52:15 +01:00
Ivan Habunek 59efff5abc
Use context manager to edit config
This simplies the code a bit and resolves some type hinting issues.
2023-12-17 09:42:09 +01:00
Ivan Habunek 1dac093be7
Add --json option to lists commands 2023-12-14 14:10:53 +01:00
Ivan Habunek 438a8ab206
Make instance work without logging in 2023-12-14 13:06:06 +01:00
Ivan Habunek f72e4ba844
Move code from toot.tui.base to toot.tui 2023-12-14 11:35:52 +01:00
Ivan Habunek 2f3f686a00
Rework how app, user are passed to context 2023-12-14 10:11:09 +01:00
Ivan Habunek 164016481d
Replace lists commands with subcommands 2023-12-13 16:14:46 +01:00
Ivan Habunek fab23b9069
Reorganize cli imports
The old way did not allow for having multiple commands of the same name
2023-12-13 15:00:47 +01:00
Ivan Habunek 381e3583ef
Add featured tag commands 2023-12-13 08:40:02 +01:00
Ivan Habunek 743dfd715e
Change `toot tags` to `toot tags followed` 2023-12-13 08:40:02 +01:00
Ivan Habunek c7e01c77f2
Add --json option to tag commands 2023-12-13 08:40:02 +01:00
Ivan Habunek 8e7a90e8da
Remove unused code 2023-12-07 10:23:05 +01:00
Ivan Habunek bbb5658781
Overhaul output to use click 2023-12-05 11:55:09 +01:00
Ivan Habunek 2429d9f751
Migrate timeline commands 2023-12-03 13:29:31 +01:00
Ivan Habunek 69a11f3569
Remove old mock tests
These will be replaced by simpler and more useful integration tests.
2023-12-02 11:10:36 +01:00
Ivan Habunek d8c7084678
Migrate auth commands 2023-11-30 20:12:04 +01:00
Ivan Habunek e5c8fc4f77
Extend instance tests 2023-11-30 20:08:59 +01:00
Ivan Habunek 6c9b939175
Better test file name 2023-11-30 12:12:41 +01:00
Ivan Habunek 5d9ee44cec
Migrate list commands 2023-11-29 12:11:41 +01:00
Ivan Habunek c0eb76751f
Migrate update_account command 2023-11-28 16:56:53 +01:00
Ivan Habunek 3dc5d35751
Migrate account commands 2023-11-28 14:05:44 +01:00
Ivan Habunek 51fcd60eb5
Migrate status commands 2023-11-28 12:26:08 +01:00
Ivan Habunek d6678e0498
Migrate post command 2023-11-28 11:53:43 +01:00
Ivan Habunek 9ecfa79db8
Setup click, migrate read commands 2023-11-28 10:13:05 +01:00