Wykres commitów

25 Commity (61748597220ba873307f53b7ce0bc853fed8c76f)

Autor SHA1 Wiadomość Data
Marnanel Thurman 71c6d26ad8 Param values are strings, not bools.
All tests now pass!
2021-02-18 19:24:48 +00:00
Marnanel Thurman a5848e45e2 test_as_follower moved to home timeline test, rather than public timeline test.
Test of "since" param, which doesn't exist, replaced with the correct "since_id".

Removed a lot of debug code that shouldn't have been checked in.

Fixed some comments.
2021-02-18 18:37:43 +00:00
Marnanel Thurman 3ad00cfae0 tests for remote and local params on timelines fixed to produce actual remote statuses! 2021-02-17 22:44:21 +00:00
Marnanel Thurman 37d53b2e4e Status.content and Status.spoiler_text are now Status.content_source and Status.spoiler_source.
HTML renderings of each one are cached. You can access them at Status.content_as_html
and Status.spoiler_as_html.
2021-02-16 22:58:42 +00:00
Marnanel Thurman 5bf75d6c98 Fixed expected results which were wrong 2021-02-15 18:24:34 +00:00
Marnanel Thurman 8eb2b2468d Timelines tests pass GET params in via "data" and not literally in the path.
We start testing limits with limit=1 rather than limit=0, because it was
confusing the defaults mechanism further up. I'm not sure limit=0 is useful
anywhere at all.

And some minor fixes.
2021-02-14 22:01:43 +00:00
Marnanel Thurman 3a3ce2fae2 Home timeline tests added 2021-02-09 18:06:04 +00:00
Marnanel Thurman 17519f62cb split public and home timeline tests to separate classes 2021-02-09 17:42:10 +00:00
Marnanel Thurman f40a6d862d Many new timeline tests, per spec 2021-02-09 17:39:39 +00:00
Marnanel Thurman 312b3760fc Started to put test_timelines in order. Each test sets up the statuses as it needs. 2021-02-07 20:30:03 +00:00
Marnanel Thurman 46e55a740a Added @skip back in to all the remaining NotImplementedError stub tests.
I'm doing this because otherwise this branch becomes impossible to
merge with main until it's completely ready.
2020-10-30 23:05:25 +00:00
Marnanel Thurman 4fbad0a949 Removed loads of @skip decorators from tests, as part of issue 47.
Tests now fail quite a lot. :)
2020-10-26 22:29:55 +00:00
Marnanel Thurman 3d38c6618a Replaced the "requested" flag in Follow with an "offer" field which holds the ID of the follow request. 2020-09-30 15:44:16 +01:00
Marnanel Thurman b42887616e Fix some of the headers in trilby.
Standard comment block at the start, and getting the logger in the same way.
2020-08-23 16:54:43 +01:00
Marnanel Thurman 3858c95426 Content of statuses, and notes (bios) of users, are interpreted as markdown
and returned as HTML.
2020-04-25 16:40:06 +01:00
Marnanel Thurman b8b3bb1891 two more timeline tests 2020-04-22 16:54:36 +01:00
Marnanel Thurman d64ce1ff3d use the proper API endpoint for the public timeline 2020-04-22 16:48:57 +01:00
Marnanel Thurman 564bb291a0 First timeline tests (they fail) 2020-04-22 16:47:01 +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 14ea5c1b13 tests all pass 2020-04-04 20:55:04 +01:00
Marnanel Thurman 15e648d507 intermediate 2020-04-04 20:51:20 +01:00
Marnanel Thurman 5021f60431 intermediate 2020-04-03 17:57:03 +01:00
Marnanel Thurman e07706865e Intermediate checkin 2020-03-16 17:54:02 +00:00
Marnanel Thurman 474075cd5c For the public timeline, we query each status to see whether it's public,
rather than attempting to do it via a database filter.

Database filters will fail because public-ness is based on
several possible considerations.

trilby_api.tests.create_local_status gains a "to" parameter.

Tests added.
2019-12-25 23:21:43 +00:00