Commit graph

231 commits

Author SHA1 Message Date
Mouse Reeve
d5ca77362b Fixes boost activity type in status model test 2021-02-17 10:38:09 -08:00
Mouse Reeve
9225043b5d Fixes relationship model test 2021-02-17 10:16:17 -08:00
Mouse Reeve
cbf5479253 Test fixes 2021-02-17 08:35:17 -08:00
Mouse Reeve
104e4d7cf7 Patch setup in status tests 2021-02-09 13:06:59 -08:00
Mouse Reeve
1d7cea2789 fixes tests with broadcast kwarg 2021-02-09 12:48:46 -08:00
Mouse Reeve
0a554b002d Fixes test for handling direct recipients 2021-02-09 10:43:40 -08:00
Mouse Reeve
76e90cb3f6 Fixes remaining test patches 2021-02-08 09:38:28 -08:00
Mouse Reeve
272685f27d sketchy fix for boost broadcasting 2021-02-06 21:30:43 -08:00
Mouse Reeve
63fe9777e2 Fixes shelf model tests 2021-02-06 21:02:58 -08:00
Mouse Reeve
b02a2c1aa4 broadcasting for follow, accept, and reject 2021-02-06 19:18:02 -08:00
Mouse Reeve
ffd0759f6f Fixes field and lists tests 2021-02-06 16:13:59 -08:00
Mouse Reeve
f917079c0b Adds update tests for objectmixin 2021-02-06 13:48:02 -08:00
Mouse Reeve
d477b6d3f3 tests create and delete activity for objectmixin 2021-02-06 13:43:09 -08:00
Mouse Reeve
3b17c0ed44 Fixes broadcast recipients with software constraint 2021-02-06 12:41:35 -08:00
Mouse Reeve
ff721896c0 Fixes call to mention_users 2021-02-06 12:06:45 -08:00
Mouse Reeve
c7c975d695 Use save method override instead of a signal
and gets the new test file working
2021-02-06 12:00:47 -08:00
Mouse Reeve
7381536ad6 circular import issues and added_by migration 2021-02-04 14:27:26 -08:00
Mouse Reeve
bbc05578fb Fixes tests 2021-02-02 14:59:40 -08:00
Mouse Reeve
5939a72c81 More list models tests 2021-01-31 13:31:49 -08:00
Mouse Reeve
4883231347 Fixes model test 2021-01-31 09:08:06 -08:00
Mouse Reeve
af65509527 stub test for list model 2021-01-30 21:03:50 -08:00
Joel Bradshaw
070fa04b63 Add validators and more tests
I don't think these validators will do anything unless we use them or
are submitting a form, but they're there nonetheless
2021-01-19 23:40:11 -08:00
Mouse Reeve
83852e29eb Update edition ranks when work is saved 2021-01-11 10:02:49 -08:00
Mouse Reeve
3fe7b95786 Fixes setting remote user username on update 2021-01-04 10:42:31 -08:00
Mouse Reeve
50f61f5d19 Merge branch 'main' into validate-username 2021-01-04 09:41:17 -08:00
Mouse Reeve
1e7aa283c2 Patches celery calls in connector tests 2021-01-02 09:08:37 -08:00
Mouse Reeve
86060f795d Updates tests 2021-01-02 08:55:42 -08:00
Mouse Reeve
d828b0ead9 Remove books manager at long last 2021-01-02 08:14:28 -08:00
Mouse Reeve
a444c5f6fc Fixes model deduplication from data 2020-12-31 12:22:00 -08:00
Mouse Reeve
9afbf3196f Cleans up paths in import model tests 2020-12-31 09:49:27 -08:00
Mouse Reeve
74a25f205b Validator for username field 2020-12-28 14:14:22 -08:00
Mouse Reeve
7e987fc446 Updates unit tests for new username handling
still some failing tho
2020-12-27 17:21:01 -08:00
Mouse Reeve
ac261d7b1a Send connector with search result
also fix typo in get_work_from_edition_data function
2020-12-27 14:33:34 -08:00
Mouse Reeve
9f74e95b00 stylistic cleanup of import model tests 2020-12-27 13:32:27 -08:00
Mouse Reeve
79973687d5 Updates tests 2020-12-20 12:50:35 -08:00
Mouse Reeve
606e93fb12 Hacky fix for serializing boost 2020-12-18 11:34:21 -08:00
Mouse Reeve
80de6079fa User p tags for pure status serializer 2020-12-18 11:00:30 -08:00
Mouse Reeve
60239c867a Updates unit tests 2020-12-17 13:06:17 -08:00
Mouse Reeve
530198adea Serialize alt text of images 2020-12-17 12:54:04 -08:00
Mouse Reeve
39dc0501a5 Make alt text a model property 2020-12-17 12:30:49 -08:00
Mouse Reeve
42167af3e9 Tests fro html field 2020-12-16 18:39:18 -08:00
Mouse Reeve
7f6390f722 Test incoming in one file 2020-12-14 10:25:43 -08:00
Mouse Reeve
badc5d0dab Adds another shelf model test 2020-12-14 10:18:14 -08:00
Mouse Reeve
4fcdbe5299 Fixes clashing test model name 2020-12-13 15:56:30 -08:00
Mouse Reeve
c75f5a1598 Unit tests for privacy model field 2020-12-13 15:50:02 -08:00
Mouse Reeve
49979fabef More user serialization tests 2020-12-12 15:00:20 -08:00
Mouse Reeve
e7f400533e Fixes missing book and user objects 2020-12-12 14:15:10 -08:00
Mouse Reeve
804066c523 a couple more assertions for testing fk field 2020-12-12 13:47:51 -08:00
Mouse Reeve
7c43fa1f7c Adds deduplication fields 2020-12-12 13:39:55 -08:00
Mouse Reeve
d0c1a68df6 Patches celery call in field tests and fixes tag field 2020-12-07 13:39:05 -08:00
Mouse Reeve
4599df752d Adds tests for many to many field deserialization 2020-12-07 09:31:12 -08:00
Mouse Reeve
69bb3f2751 Fixes validation error in many to many field deserializer 2020-12-07 09:14:30 -08:00
Mouse Reeve
7a90aa8f6c Start moving serializing from to_model to fields 2020-12-05 21:33:48 -08:00
Mouse Reeve
8500a7cfe1 Unit test fails in CI but not local 2020-12-05 15:38:12 -08:00
Mouse Reeve
ef1558628f Fixes transient failure in image field test 2020-12-05 14:48:47 -08:00
Mouse Reeve
05cde33a0c Adds tests for remaining nontrivial model fields 2020-12-05 14:42:54 -08:00
Mouse Reeve
8a900689d3 Generalizes link format in many to many field 2020-12-04 17:57:14 -08:00
Mouse Reeve
f116ce378d Fixes foreign key test 2020-12-04 17:42:41 -08:00
Mouse Reeve
aa6e312cfb Starts adding tests for custom model fields 2020-12-04 17:38:39 -08:00
Mouse Reeve
9c9da35d9a Tests base_model to_activity 2020-12-04 15:14:26 -08:00
Mouse Reeve
800ddf2a6b fixes inconsistency in to_undo activity helper 2020-12-04 11:53:50 -08:00
Mouse Reeve
39307ce1cd Fixes remote_id on Update activities 2020-12-04 11:48:34 -08:00
Mouse Reeve
2e4aff90a3 Fixes signing Create activities
and some tests for the base_model
2020-12-04 11:29:38 -08:00
Mouse Reeve
646ced80ce Test fixes 2020-12-03 17:18:23 -08:00
Mouse Reeve
fee5846aa8 Fixes generating new key paris for user
and the broadcast test
2020-11-30 19:33:50 -08:00
Joel Bradshaw
d8b2afff3d Replace naive datetimes with aware ones 2020-11-27 16:35:03 -08:00
Mouse Reeve
0c01af4042 Another nondeterministic list order problem 2020-11-27 12:42:01 -08:00
Mouse Reeve
44a0ef3b0b Fixes nondeterministic order of query causing test failure 2020-11-27 12:25:01 -08:00
Mouse Reeve
86504989b4 fixes import matching with local books 2020-11-13 09:59:57 -08:00
Mouse Reeve
cfa4cb015d corrects tests for latest code changes 2020-11-07 17:48:50 -08:00
Mouse Reeve
0c73a1f42e updates test data and serialization 2020-11-02 16:24:56 -08:00
Mouse Reeve
3fc1f46897 Handle dashes in isbns 2020-10-30 12:43:02 -07:00
Mouse Reeve
701be26100 Fixes unit tests 2020-10-30 11:55:41 -07:00
Mouse Reeve
7ce0890a41 Stop assuming every book is Hamlet 2020-10-29 15:30:53 -07:00
Mouse Reeve
7febcec229 convert between ibsn 10 and 13 2020-10-29 12:32:37 -07:00
Mouse Reeve
43c6b9880a
Merge pull request #236 from mouse-reeve/relationship-activitypub
Uses activitypub mixin in relationship models
2020-10-16 11:04:14 -07:00
Mouse Reeve
2a0af0138d Uses activitypub mixin in relationship models
plus tests
2020-10-16 10:37:33 -07:00
Mouse Reeve
7a153e185a User activitypub tests 2020-10-16 09:45:14 -07:00
Mouse Reeve
13a8bb45af Corrects references in tests 2020-09-21 08:22:58 -07:00
Mouse Reeve
c7883cd615 Updates migrations
To get the app working again I ran resetdb, let it crash in initdb,
then ran the migration, then re-ran initdb
2020-09-21 08:10:37 -07:00
Mouse Reeve
f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00