Wykres commitów

173 Commity (a9a7937ddecb40a35e2d347553d7375bcca154e8)

Autor SHA1 Wiadomość Data
Marnanel Thurman a9a7937dde async_result success codes are 0 and 1, not False and True 2018-10-12 20:15:12 +01:00
Marnanel Thurman dd5e925872 If an Activity can't be created because of unresolved references, don't try to return it anyway! 2018-10-12 20:14:32 +01:00
Marnanel Thurman 554766326b Activate httpretty and it all works. I feel a bit of a fool. 2018-10-12 20:13:59 +01:00
Marnanel Thurman 1e61103353 Don't test whether a remote article has been loaded for a Like that failed;
it causes weird race conditions. If the article itself is valid,
it should stay.
2018-10-12 18:20:18 +01:00
Marnanel Thurman 800dcaaf88 abolishing NeedToFetchException because it messes up debugging 2018-10-12 17:45:44 +01:00
Marnanel Thurman b81d6c7107 Using central logger. 2018-10-12 16:32:40 +01:00
Marnanel Thurman 2899e20188 Malformed JSON check doesn't attempt to build the JSON string itself.
Using central logger.

Added silly hack for testing state issues.
2018-10-12 16:31:47 +01:00
Marnanel Thurman 412799fc2f Nudging httpretty to allow Celery to callback is moved to __init__.py.
That is possibly the most techie sentence I've ever written.

Using central logger.

Success codes changed to 0 and 1 instead of False and True.
2018-10-12 16:29:46 +01:00
Marnanel Thurman 81e68ebf0a Don't set DEBUG; it interferes with the test runner's --debug-mode option.
Rewritten LOGGERS so that it filters everything out if we're not in debug mode.
2018-10-12 16:28:20 +01:00
Marnanel Thurman 2d03a62dbb async_result success codeis are 0 or 1, not False or True. (bool("False") is True!)
async_result malformed body check isn't performed if success==0.

Using central logger.
2018-10-12 16:26:17 +01:00
Marnanel Thurman 45e1e405ef Using central logger. Improved log messages. 2018-10-12 16:25:46 +01:00
Marnanel Thurman 1dd753bae3 Let's have one central logger 2018-10-12 16:25:26 +01:00
Marnanel Thurman 990e5ece9f intermediate 2018-10-12 00:59:44 +01:00
Marnanel Thurman 869f0639d2 you can't use literal dicts as default params 2018-10-12 00:59:24 +01:00
Marnanel Thurman a2ffc1f3be improved __str__ for QuarantinedMessage and QuarantinedMessageNeeds 2018-10-10 21:37:01 +01:00
Marnanel Thurman 73f8032791 wild amounts of tinkering to make the tests use httpretty 2018-10-10 21:28:41 +01:00
Marnanel Thurman cd9ac8d27f KepiTestCase 2018-10-10 21:28:31 +01:00
Marnanel Thurman b9d945ebfc @shared_task -> @shared_task() 2018-10-10 21:27:47 +01:00
Marnanel Thurman cf49e8f4b0 + httpretty 2018-10-10 21:27:33 +01:00
Marnanel Thurman 96c2333f1a Using a more realistic callback URL for batch tasks
(though in practice we'll need to get the real one from settings)
2018-10-10 21:26:45 +01:00
Marnanel Thurman a87298b9ed rm outdated comment 2018-10-09 16:59:23 +01:00
Marnanel Thurman af7ba26aa5 ThingUser status defaults to local 2018-10-08 22:01:30 +01:00
Marnanel Thurman b3bf7662b8 beginning to flesh out the Celery integration 2018-10-06 22:11:38 +01:00
Marnanel Thurman dfcc26ff18 turn logging off again 2018-10-06 21:40:52 +01:00
Marnanel Thurman a2d0a72fc2 Sphinx (quickstart) 2018-10-05 20:15:56 +01:00
Marnanel Thurman cfe269f72c intermediate 2018-10-05 00:12:03 +01:00
Marnanel Thurman 3841a009f9 intermediate 2018-10-03 22:43:42 +01:00
Marnanel Thurman ca88429872 Added some logging 2018-10-03 22:35:18 +01:00
Marnanel Thurman 0f840e5c12 Testing for asyncresult 2018-10-03 20:53:45 +01:00
Marnanel Thurman 32ebf1a668 ThingArticle allows remote articles, and activitypub_create() 2018-10-03 20:53:30 +01:00
Marnanel Thurman 5d30ed1af9 rm debug print 2018-10-03 20:53:12 +01:00
Marnanel Thurman dee5586e5e testing migration (should have been added earlier) 2018-10-03 20:47:29 +01:00
Marnanel Thurman ec486e180e various AsyncResult fixes; another intermediate checkin 2018-10-03 20:28:52 +01:00
Marnanel Thurman 1c0971a066 fixed uninitialised variable 2018-10-03 20:27:53 +01:00
Marnanel Thurman e8d217ac44 Added "remote" field to ThingUser so we can track remote users.
Implemented ThingUser.activitypub_create().
2018-10-03 20:26:30 +01:00
Marnanel Thurman ff44834b34 Intermediate checkin for AsyncResult 2018-10-03 19:36:39 +01:00
Marnanel Thurman 7b5408ed4c Sort out model identifiers in things_for_testing 2018-09-27 17:53:25 +01:00
Marnanel Thurman 132932d6c8 okay, turn logging off in tests for now 2018-09-27 17:52:42 +01:00
Marnanel Thurman 937bc04651 Test for "all known" tests for Activity creation as well as QM deletion 2018-09-27 17:36:12 +01:00
Marnanel Thurman cb193f69d7 Some basic logging.
QuarantinedMessages remove themselves when they're accepted as Activities.
2018-09-27 17:35:41 +01:00
Marnanel Thurman e58a303589 Test that messages where all parts are known go through immediately. Also, url_identifier() -> activity_id in ThingArticle for regularity. 2018-09-27 16:52:29 +01:00
Marnanel Thurman 20ff4d636d Tests for non-json messages 2018-09-27 16:38:41 +01:00
Marnanel Thurman 16a023e9df Search for ThingUsers by URL, not name 2018-09-27 14:27:36 +01:00
Marnanel Thurman 91faeb0773 Activity.deploy() allows Activities to have side-effects when they're created. 2018-09-27 14:27:00 +01:00
Marnanel Thurman daa5543916 rm outdated comment 2018-09-27 13:50:26 +01:00
Marnanel Thurman 6350ebe886 QuarantinedMessageNeeds are unique per (message, URL) 2018-09-23 23:57:09 +01:00
Marnanel Thurman 333c8590c7 enable celery 2018-09-23 21:59:13 +01:00
Marnanel Thurman 8717b59a97 Attempts to create "Like" activities, not "Article"s (which aren't Activitys) 2018-09-23 21:58:38 +01:00
Marnanel Thurman e061aba382 Messages with unresolved references don't cause an error for the sender. 2018-09-23 21:57:50 +01:00
Marnanel Thurman 27dfb4ac27 Add QuarantinedMessageNeeds.
QM.deploy() attemps to deploy.

If Activity.create() finds unresolved references,
it throws a NeedToFindException with a set of all of them,
not just the first one it finds.
2018-09-23 21:55:57 +01:00