Wykres commitów

1105 Commity (9d8f4613d4c29d76eeec3523dd88d25c98161989)

Autor SHA1 Wiadomość Data
Marnanel Thurman 564bb291a0 First timeline tests (they fail) 2020-04-22 16:47:01 +01:00
Marnanel Thurman c53a2d03ef "unfollow" endpoint added; tests added; new signal added. 2020-04-20 19:17:54 +01:00
Marnanel Thurman 0f22fe7107 status test now adjusts expected fields because statuses_count is working 2020-04-20 18:32:54 +01:00
Marnanel Thurman e580b52682 as before, but with "following" fixed! 2020-04-20 18:29:28 +01:00
Marnanel Thurman e18a915b4e Implementation of Person.follower_count, following_count,
followers, following, and status_count. Tests for all of these
except status_count.
2020-04-20 18:23:04 +01:00
Marnanel Thurman 248ee46d87 Renamed Follow related-names to "rel_*" because they were clashing with accessors in Person 2020-04-20 18:22:25 +01:00
Marnanel Thurman fe21b73a0f rm one stub, because "get account" == "get user" 2020-04-19 20:59:42 +01:00
Marnanel Thurman 26f9ce8133 account details in a status don't give the "source" param 2020-04-19 17:05:57 +01:00
Marnanel Thurman c30bd5a63a operate on a copy of ACCOUNT_STATUS so as not to spoil the original 2020-04-19 17:05:37 +01:00
Marnanel Thurman 98035261ce Trilby's *_EXPECTED constants are now dicts, which means the update_credientials can search in the "source" dict properly. 2020-04-19 17:01:19 +01:00
Marnanel Thurman f05fd36da0 update_credentials 2020-04-19 16:52:55 +01:00
Marnanel Thurman 66cec9a1c3 draft test for patching update_credentials 2020-04-19 16:19:20 +01:00
Marnanel Thurman 5d1dda99cb More Trilby tests are using TrilbyTest's get, post, etc instead of the standalone ones
(which are going away soon)
2020-04-19 16:10:57 +01:00
Marnanel Thurman dc3ce6c2f4 TrilbyTest's get, post, etc gain "expect_result" and "parse_result" params 2020-04-19 16:10:08 +01:00
Marnanel Thurman 33e23f39bb Status lookup is read-only for unauth'd users 2020-04-19 16:09:32 +01:00
Marnanel Thurman 45e565ae66 Code which uses Person doesn't have to bother about TrilbyUsers at all. 2020-04-19 00:13:50 +01:00
Marnanel Thurman bd7454d4ff Slightly more informative error message if the account fields test fails 2020-04-19 00:13:34 +01:00
Marnanel Thurman eb8d655008 trilby test client passes data to POST requests correctly 2020-04-18 23:57:47 +01:00
Marnanel Thurman 72085c635d test_get_all_statuses was really a timeline test; removed
also removed slash from the end of "statuses/" path
2020-04-18 23:57:18 +01:00
Marnanel Thurman b245f467b1 Simple account retrieval doesn't give you "source" for your own account 2020-04-18 23:45:38 +01:00
Marnanel Thurman 8c5949fc43 Look up local user by username (rather than by id as in the old system) 2020-04-18 23:45:12 +01:00
Marnanel Thurman a8186fa585 trilby tests:
- ACCOUNT_EXPECTED etc moved to __init__
 - the path param to get, post, etc is called "path" not "url"
 - _create_alice in TrilbyTestCase for now
 - get, post, etc methods in TrilbyTestCase
     (the existing standalone functions are still there for now
      to avoid breaking stuff we're going to refactor soon)
 - test_post_multiple_statuses removed bc pointless
 - test for custom emojis moved to test_instance and
      its path fixed to the correct one
2020-04-16 17:25:17 +01:00
Marnanel Thurman d80ae73e5c test_integration and test_rest merged into the other tests;
some tests still breaking
2020-04-16 16:39:38 +01:00
Marnanel Thurman 0f8937b917 On trilby tests:
- tests which were expecting 201 now expect 200.
 - test_instance, all stubs
 - test_search, all stubs
 - many new stubs so we have (stub) API coverage
2020-04-16 16:22:45 +01:00
Marnanel Thurman eafe450836 trilby test_account (all stubs) 2020-04-16 16:07:18 +01:00
Marnanel Thurman 84bdc26ee1 Reblog / unreblog / reblogged_by views 2020-04-15 18:25:24 +01:00
Marnanel Thurman 3be0ab6fc7 if response is not JSON, don't attempt to continue 2020-04-15 18:25:00 +01:00
Marnanel Thurman 05445444b9 reblogged signal 2020-04-15 18:24:43 +01:00
Marnanel Thurman c041b67fcb "reblog" in StatusSerializer becomes a RecursiveField 2020-04-15 18:24:02 +01:00
Marnanel Thurman fff3bd00d2 ForeignKey of Status back to Person renamed "poster"
Statuses can't be replies to, or reblogs of, themselves.
2020-04-15 18:08:44 +01:00
Marnanel Thurman 0b99864320 add reblog field to Status 2020-04-15 16:07:35 +01:00
Marnanel Thurman b6a59cdc61 get_favourited_by 2020-04-15 16:01:21 +01:00
Marnanel Thurman de6c79b073 get context working 2020-04-14 17:54:52 +01:00
Marnanel Thurman 21ecbd03e4 new test for get context; doesn't yet pass 2020-04-14 17:35:35 +01:00
Marnanel Thurman 31713c9c41 missing param 2020-04-14 14:29:28 +01:00
Marnanel Thurman 027401c29b Status deletion tests; deletion check for ownership 2020-04-14 14:27:18 +01:00
Marnanel Thurman 61c450c387 Getting status that doesn't exist returns 404 2020-04-14 14:11:43 +01:00
Marnanel Thurman e789b10247 TestGetStatus 2020-04-14 14:08:55 +01:00
Marnanel Thurman 368ff8209b TestPublish 2020-04-14 13:55:06 +01:00
Marnanel Thurman 7e9f5fca7a intermediate 2020-04-14 13:49:04 +01:00
Marnanel Thurman eec30c221b intermediate 2020-04-14 13:43:52 +01:00
Marnanel Thurman eb5ac2f123 unlike, plus test 2020-04-13 22:40:46 +01:00
Marnanel Thurman fbe720872c tests and test stubs for status 2020-04-13 22:32:22 +01:00
Marnanel Thurman aa7a3b90fe intermediate 2020-04-06 23:44:35 +01:00
Marnanel Thurman a1a563425b rm obsolete bits of bowler_pub 2020-04-05 01:52:36 +01:00
Marnanel Thurman 0b5c654383 intermediate 2020-04-05 01:48:26 +01:00
Marnanel Thurman e34bb594a6 new migrations 2020-04-04 21:38:18 +01:00
Marnanel Thurman 62e178250c rm trilby migrations 2020-04-04 21:37:28 +01:00
Marnanel Thurman 23c7b69402 rm bowler migrations 2020-04-04 21:36:47 +01:00
Marnanel Thurman b757259111 intermediate 2020-04-04 21:20:17 +01:00