Marnanel Thurman
7f675c7b00
Key pairs for testing.
2023-10-05 19:24:20 +01:00
Marnanel Thurman
6817216d52
Doing argparse with subcommands, and not daemonising by default
...
This is a sketch; let's see if it's appropriate
2023-10-03 15:53:49 +01:00
Marnanel Thurman
6b5e47807e
410 Gone is okay if we're deleting the user
...
Tests added
2023-10-03 15:08:23 +01:00
Marnanel Thurman
a38679e7a4
Fetch gives more info on failure
2023-10-03 15:08:06 +01:00
Marnanel Thurman
0d2cc626da
logger.debug -> info in relevant places
...
so that if you just turn "info" on, you get the gist anyway
Also, the logging for HeaderVerifier's args uses the same
dict as the actual call.
2023-10-03 14:44:08 +01:00
Marnanel Thurman
d8181d0649
rm debug print
2023-10-03 14:43:59 +01:00
Marnanel Thurman
317609a0df
validation passes
2023-10-01 20:42:00 +01:00
Marnanel Thurman
04e87d1f1f
some simple flavour_to_message
2023-10-01 16:20:30 +01:00
Marnanel Thurman
1845a17211
requirements.txt frozen and extended
2023-10-01 16:20:22 +01:00
Marnanel Thurman
40c3e10b63
Fetch (from sombero_sendpub), stub
...
No tests yet; tests needed
2023-10-01 16:19:39 +01:00
Marnanel Thurman
3e427149fd
Validation (from bowler_pub), stub
2023-10-01 16:19:10 +01:00
Marnanel Thurman
677f704db1
flavour_to_message
...
message_to_flavour still to write
2023-09-29 20:42:06 +01:00
Marnanel Thurman
a2c02abc2c
Flavour stub and tests
2023-09-27 15:15:12 +01:00
Marnanel Thurman
1c3a4733d8
Include statuses on user page
2023-09-24 18:21:21 +01:00
Marnanel Thurman
44b4aaaad7
Merge branch 'main' into commandline
2023-09-24 17:51:22 +01:00
Marnanel Thurman
c8a5b5308b
TrilbyTestCase descends from KepiTestCase
2023-09-23 14:32:59 +01:00
Marnanel Thurman
94309cc77d
KepiTestCase
...
The only difference from django.test.TestCase is that KepiTestCase
redirects logging to stdout in setUp, and undoes it again in
tearDown. This is because Django's "./manage.py test" suppresses
stderr, so you can't read the debug logs otherwise.
Put into use in a couple of files where it was needed immediately.
Will add more later.
2023-09-22 16:36:51 +01:00
Marnanel Thurman
b00f844d84
Follow -> FollowUser; Unfollow -> UnfollowUser
...
Since k.t.models also has a Follow class, it was getting confusing.
urls also doesn't "import *" the views classes any more, for clarity.
There were some classes duplicated between persons.py and statuses.py;
they have been confined to persons.py.
__init__.py has content.
2023-09-22 16:36:51 +01:00
Marnanel Thurman
8a0deb6c93
AppConfigs set default_auto_field
...
Django used to default this, but it generates a warning now.
2023-09-22 16:36:47 +01:00
Marnanel Thurman
4d63fd669d
Remove "providing_args" from signals
...
This will probably break them, but we don't need them at present.
2023-09-22 16:36:22 +01:00
Thomas Thurman
07875e03ab
config error, marnanel.org specific
2023-09-22 16:36:22 +01:00
Marnanel Thurman
aee804b6ae
add tests for read-only SpooledMessage fields
2023-09-18 14:50:27 +01:00
Marnanel Thurman
dafbdfcc11
further fleshing out of Spool
...
add SpooledMessage
tests updated
2023-09-18 14:48:43 +01:00
Marnanel Thurman
1aae9039c2
fleshing out Spool; add test
2023-09-18 14:16:52 +01:00
Marnanel Thurman
dc78f29793
sketch of Spool
2023-09-18 08:09:55 +01:00
Marnanel Thurman
5788e37007
Notes on the state machine
2023-09-16 15:22:23 +01:00
Marnanel Thurman
e3a9a22e72
first draft of Message
2023-09-15 19:33:54 +01:00
Marnanel Thurman
e18f456dcb
Further sketching
2023-09-01 16:30:47 +01:00
Marnanel Thurman
c352061fe9
Sketch of daemon
2023-09-01 16:14:15 +01:00
Marnanel Thurman
274be07b81
update signals to remove obsolete parameter; may not work
...
This is just to make sure it doesn't actually fall over on the dev branch
2023-09-01 16:06:57 +01:00
Marnanel Thurman
4a046f6a14
copyright date bump
2023-09-01 16:06:26 +01:00
Marnanel Thurman
77b45772bb
Update to new version of celery (so djcelery is removed).
...
This seems to involve unsetting TEST_RUNNER. I'm not certain
this is correct; I'm asking on IRC.
2021-05-31 19:13:07 +01:00
Marnanel Thurman
7233d203bd
trilby's AppConfig.name set to the fully-qualified path
2021-05-31 16:13:34 +01:00
Marnanel Thurman
02688a8422
obsolete url() -> path()
2021-02-19 19:31:50 +00:00
Marnanel Thurman
ebc4052495
Rewrite oauth2 entries in urls.py. They were wrong, and this should
...
have fixed issue 70, but it doesn't.
2021-02-18 20:30:02 +00:00
Marnanel Thurman
6174859722
Merge branch 'issue-68' into 'main'
...
Issue 68
See merge request marnanel/chapeau!2
2021-02-18 20:26:57 +00:00
Marnanel Thurman
71c6d26ad8
Param values are strings, not bools.
...
All tests now pass!
2021-02-18 19:24:48 +00:00
Marnanel Thurman
574176b42b
"only_media" stub
2021-02-18 18:47:45 +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
46b3dcfbf7
__ge and __le filters replaced with the correct __gte and __lte
2021-02-18 18:37:11 +00:00
Marnanel Thurman
31dede8c2c
Better logging for inbox calculation
2021-02-18 18:36:37 +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
061ce40101
Remote/local test for Status objects is remote_url__isnull
2021-02-15 18:24:48 +00:00
Marnanel Thurman
5bf75d6c98
Fixed expected results which were wrong
2021-02-15 18:24:34 +00:00
Marnanel Thurman
dbdad70376
LocalPerson.inbox uses Q objects rather than union(), because
...
union precludes filtering later.
See:
https://stackoverflow.com/questions/49260393/django-filter-a-queryset-made-of-unions-not-working
2021-02-15 18:21:57 +00:00
Marnanel Thurman
e77ce337c4
Heroic attempt to work with django_rest_framework instead of fighting against it.
...
Specifically, filter_queryset() does the filtering, and we don't attempt
to provide our own get() on a ListAPIView.
2021-02-14 22:03:37 +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
d4af44913b
TrilbyTestCase uses the "data" and "extra" params the same way as Django's test client
2021-02-14 22:00:18 +00:00
Marnanel Thurman
a9d03dd280
Shorten Status.__str__ because it gets overwhelming in the logs
2021-02-14 21:59:47 +00:00