Commit graph

1193 commits

Author SHA1 Message Date
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
Joel Bradshaw
32346cf9a3 Cascade-delete progress updates
Add a warning about it, and update test to confirm it works
2021-01-19 22:36:44 -08:00
Mouse Reeve
9f2ca73a58 Tests terminal space in mentions string 2021-01-19 16:48:06 -08:00
Joel Bradshaw
60b42827f4 Mock the AP publishing to stop hanging tests 2021-01-18 20:00:04 -08:00
Joel Bradshaw
49893f49e1 Merge fixes 2021-01-17 13:09:49 -08:00
Joel Bradshaw
a4519d55c9 Merge branch 'main' into progress_update 2021-01-17 13:05:38 -08:00
Mouse Reeve
8532c9a46b tests goal views 2021-01-16 13:29:28 -08:00
Joel Bradshaw
1e13997c5d Create an actual user, add missing file
Also allow `./bw-dev up -d`

I'm not sure why this was necessary, but it makes enough sense
2021-01-13 23:02:56 -08:00
Joel Bradshaw
48147883ce Merge branch 'main' into progress_update 2021-01-13 19:53:26 -08:00
Mouse Reeve
0a9757bf01 A few more templatetag tests 2021-01-13 19:28:44 -08:00
Mouse Reeve
c0ce38a9d3 landing page tests 2021-01-13 18:48:50 -08:00
Mouse Reeve
7d6a06025e Adds more reading tests 2021-01-13 18:02:01 -08:00
Mouse Reeve
3eceb1e2b8 Fixes interaction tests 2021-01-13 14:31:52 -08:00
Mouse Reeve
90933fa81d Fixes goodreads import tests 2021-01-13 14:02:01 -08:00
Mouse Reeve
e32a31e020 Fixes tests 2021-01-13 13:54:15 -08:00
Mouse Reeve
a385aa4cb5 Following views 2021-01-13 13:06:26 -08:00
Mouse Reeve
2e61bd0e7a Removes old views file 2021-01-13 12:18:19 -08:00
Mouse Reeve
b6bdfab943 Search class views 2021-01-13 12:05:01 -08:00
Mouse Reeve
beeeaaaf39 Adds shelf views 2021-01-13 11:45:08 -08:00
Mouse Reeve
20e280e676 Adds tag class views 2021-01-13 10:24:24 -08:00
Mouse Reeve
99abb2631e Adds author view 2021-01-13 10:04:44 -08:00
Mouse Reeve
56e3e98bc1 Adds book class view and re-works pagination 2021-01-13 09:51:51 -08:00
Mouse Reeve
cf2b9937c6 Adds fav/boost class view 2021-01-13 08:10:50 -08:00
Mouse Reeve
c8efa1ffc8 Fixes status tests and adds delete test 2021-01-13 08:04:43 -08:00
Mouse Reeve
5596277d29 tests status class view 2021-01-12 14:43:59 -08:00
Mouse Reeve
6c80b128a4 Adds status tests 2021-01-12 14:02:38 -08:00
Mouse Reeve
4ec64c02f4 Adds status views 2021-01-12 13:47:00 -08:00
Mouse Reeve
85d01d5df0 Moves user views to class view 2021-01-12 12:09:23 -08:00
Mouse Reeve
8693895bc6 Adds import view 2021-01-12 11:28:03 -08:00
Mouse Reeve
b61544b5f5 DM and notification views 2021-01-12 11:11:22 -08:00
Mouse Reeve
aa8b2c2f2b Creates landing page views 2021-01-12 10:44:17 -08:00
Mouse Reeve
fd6603ee07 Invite views 2021-01-12 10:19:58 -08:00
Mouse Reeve
65fa08633f Fixes authentication tests 2021-01-12 10:14:24 -08:00
Mouse Reeve
a2d7a97dc3 Updates tests 2021-01-12 09:09:05 -08:00
Mouse Reeve
a8483754c3 Fixes edit book view 2021-01-11 20:21:32 -08:00
Mouse Reeve
e34ae35e0f
Merge pull request #513 from mouse-reeve/edit-shelf
Edit shelf
2021-01-11 15:28:45 -08:00
Mouse Reeve
1bcb19fde9 Fixes editing shelves 2021-01-11 14:43:34 -08:00
Mouse Reeve
8d88c768cc Adds test for editing shelf 2021-01-11 14:23:56 -08:00
Mouse Reeve
83852e29eb Update edition ranks when work is saved 2021-01-11 10:02:49 -08:00
Mouse Reeve
62fd118016 remove boost notification on delete 2021-01-10 19:51:58 -08:00
Mouse Reeve
ee96c01cc1 Boost unit tests 2021-01-10 19:43:12 -08:00
Mouse Reeve
31aef46564 tweaks notifications for favs 2021-01-10 19:32:05 -08:00
Mouse Reeve
64abdafcba Resolves timezone warnings 2021-01-10 16:11:02 -08:00
Mouse Reeve
ef9e130669 Adds tests 2021-01-10 15:56:57 -08:00
Mouse Reeve
9c994e893b
Merge pull request #506 from mouse-reeve/readthrough-dupes
Don't double-add readthroughs in re-import
2021-01-10 10:18:31 -08:00
Mouse Reeve
b1b40e3c98 Don't double-add readthroughs in re-import 2021-01-10 09:36:11 -08:00
Mouse Reeve
9a575beb0b
Merge pull request #505 from mouse-reeve/link-regex-parens
Work around parens in the url regex
2021-01-10 09:22:19 -08:00
Mouse Reeve
1e42622b8e Work around parens in the url regex 2021-01-10 08:39:30 -08:00
Mouse Reeve
6eb7872598 Fixes queryset for shelf page json 2021-01-10 07:54:58 -08:00
Mouse Reeve
6638c9bb44 Handles query params in urls 2021-01-06 11:36:28 -08:00
Mouse Reeve
9e07f094ad Improves link detecting regex 2021-01-06 10:08:43 -08:00
Mouse Reeve
a25bc2383b Improves tagging regex 2021-01-06 09:45:36 -08:00
Mouse Reeve
35696934da refactors get_activity_feed function
is it better? idk
2021-01-04 19:30:05 -08:00
Mouse Reeve
1d2b56da85 Fixes outgoing tests 2021-01-04 12:00:53 -08:00
Mouse Reeve
9102d81767 Fixes checking invite validity 2021-01-04 11:14:10 -08:00
Mouse Reeve
3fe7b95786 Fixes setting remote user username on update 2021-01-04 10:42:31 -08:00
Mouse Reeve
4090b336db Fixes outgoing test users 2021-01-04 10:20:49 -08:00
Mouse Reeve
15b9f62136 Fixes users in views tests 2021-01-04 10:08:45 -08:00
Mouse Reeve
50f61f5d19 Merge branch 'main' into validate-username 2021-01-04 09:41:17 -08:00
Mouse Reeve
6668f54889 Fixes openlibrary test and navbar hover aria unfurl 2021-01-03 14:41:10 -08:00
Mouse Reeve
1187016aba
Merge pull request #469 from mouse-reeve/user-search
Search on username and localname in user search
2021-01-03 08:31:46 -08:00
Mouse Reeve
e54e1f2459 Tests user search 2021-01-03 07:57:57 -08:00
Renato "Lond" Cerqueira
b389cfb013 Use user-agent to determine whether to show pure representation
Together with #434 and #435, this fixes #429. Use the user-agent to
determine if the call is coming from a BookWyrm instance or not. If it's
not, give a pure activitypub representation for the status. Otherwise,
give a BookWyrm one, to allow for a complete integration between
instances.
2021-01-03 14:24:03 +01:00
Mouse Reeve
8afd111ff4
Merge pull request #466 from mouse-reeve/search-tweaks
Search tweaks
2021-01-02 16:30:28 -08:00
Mouse Reeve
d3c181cacb Re-sorts search results after deduplication 2021-01-02 16:09:54 -08:00
Mouse Reeve
a2e8cf1993 Return best matching edition instead of default in search 2021-01-02 15:15:25 -08:00
Mouse Reeve
4c968c417b cleans up search tests 2021-01-02 14:20:39 -08:00
Mouse Reeve
22f5fa154c Add readthroughs even when a book is already shelved 2021-01-02 13:26:42 -08:00
Mouse Reeve
b2c22c5b7f Tests handle import shelving 2021-01-02 13:09:40 -08:00
Mouse Reeve
3344eed3b9 Tests for goodreads import lookup 2021-01-02 11:35:56 -08:00
Mouse Reeve
204967e421 Adds tests file for goodreads import 2021-01-02 09:42:50 -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
bb5ae850e1 Mention users implicitly (without needing @mentions) 2021-01-01 09:35:14 -08:00
Mouse Reeve
87b8e5f39d
Merge pull request #451 from mouse-reeve/views-tests
Views tests
2020-12-31 14:03:34 -08:00
Mouse Reeve
e066c53dd0 tests hella views 2020-12-31 13:45:36 -08:00
Mouse Reeve
a444c5f6fc Fixes model deduplication from data 2020-12-31 12:22:00 -08:00
Mouse Reeve
141e7b90e8 Cleans up abstract connector tests
a buncha linting errors and junk we don't need in setup
2020-12-31 11:11:59 -08:00
Mouse Reeve
03ed1cfa94 Small syntax changes in openlibrary connector 2020-12-31 11:03:30 -08:00
Mouse Reeve
9afbf3196f Cleans up paths in import model tests 2020-12-31 09:49:27 -08:00
Mouse Reeve
171d09599c Fixes author path in openlibrary connector 2020-12-31 09:32:40 -08:00
Mouse Reeve
c1e1bdac4b Fixes url formatting in openlibrary connector 2020-12-31 09:19:39 -08:00
Mouse Reeve
69af2f4cd3 Fixes untag 2020-12-31 08:42:09 -08:00
Mouse Reeve
a7a586ea90 Fixes tagging 2020-12-31 08:30:51 -08:00
Mouse Reeve
29ee027f6d Tests tag page and orders tag collection json 2020-12-31 08:05:24 -08:00
Mouse Reeve
d04a1956f5 Test that editions page loads 2020-12-31 07:52:08 -08:00
Mouse Reeve
c33095dfe0
Merge pull request #442 from mouse-reeve/views-tests
Views tests
2020-12-30 15:51:54 -08:00
Mouse Reeve
4e413a3779 Adds tests for generating feeds 2020-12-30 14:57:57 -08:00
Mouse Reeve
48f002727a small change and test to get_user_from_username 2020-12-30 14:57:43 -08:00
Mouse Reeve
c1243b5c21 Makes outbox filter-able 2020-12-30 13:14:16 -08:00
Mouse Reeve
babc604397 Fixes outbox privacy 2020-12-30 12:41:19 -08:00
Mouse Reeve
88d8b6e577 Cleans up outbox function 2020-12-30 12:38:34 -08:00
Mouse Reeve
877e3356e5
Merge pull request #436 from mouse-reeve/search-errors
Catch error response decoding json in search connector
2020-12-30 12:18:43 -08:00
Mouse Reeve
e0adb3307b Gracefully handle unknown status types
Fixes #432
2020-12-30 12:05:20 -08:00
Mouse Reeve
490591623f Adds test for search view 2020-12-30 11:37:49 -08:00
Mouse Reeve
8ffb22291a Add connector to tested fields on search result 2020-12-30 09:51:37 -08:00
Mouse Reeve
c8d031e311 Tests connector search 2020-12-30 09:48:37 -08:00
Mouse Reeve
6a8353de09 Adds test for SearchResult dataclass
also just cleans up the styles in the test file for linting
2020-12-30 09:26:02 -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
7d1cbb7be1 Adds tests for edit author view 2020-12-22 10:10:36 -08:00
Mouse Reeve
6ca8728d7c
Merge pull request #418 from mouse-reeve/edit-user-view
Edit user view
2020-12-22 09:28:21 -08:00
Mouse Reeve
db281d5154 Simplifies update user view 2020-12-21 16:19:36 -08:00
Mouse Reeve
fcce1a5a36 Fixes outgoing tests 2020-12-21 15:52:06 -08:00
Mouse Reeve
e6105c6cb0 Simplify edit user function 2020-12-21 14:54:45 -08:00
Mouse Reeve
65e9afd271 Fixes user in outgoing tests 2020-12-21 14:54:27 -08:00
Mouse Reeve
98aa946519 Merge branch 'main' into outgoing-tests 2020-12-21 14:39:39 -08:00
Mouse Reeve
fa1ddf359a create single outgoing tests file 2020-12-21 14:37:28 -08:00
Mouse Reeve
b4c60c0591 Catches exception thrown when boosting unknown statuses 2020-12-21 14:25:10 -08:00
Mouse Reeve
1fb728edbd
Merge pull request #415 from mouse-reeve/author_text
Generate author_text field dynamically
2020-12-21 13:09:40 -08:00
Mouse Reeve
0de479a89f Fixes authors set in tests 2020-12-21 13:03:48 -08:00
Mouse Reeve
adfb1e696a typo in test 2020-12-21 12:49:33 -08:00
Mouse Reeve
bc64ae0504 Fixes assigning authors in test 2020-12-21 12:49:00 -08:00
Mouse Reeve
862f1d2580 Fixes cover unit test 2020-12-21 12:22:47 -08:00
Mouse Reeve
aac264c998 Generate author_text field dynamically 2020-12-21 12:10:42 -08:00
Mouse Reeve
e72c3e11dd Fixes incoming user test 2020-12-20 12:54:30 -08:00
Mouse Reeve
79973687d5 Updates tests 2020-12-20 12:50:35 -08:00
Mouse Reeve
a6efd51bb2 Only parse mardown on outgoing activities 2020-12-20 11:38:13 -08:00
Mouse Reeve
592721ec76 Fixes unit tests 2020-12-19 20:26:29 -08:00
Mouse Reeve
c407015a82 Fixes tests 2020-12-19 16:33:56 -08:00
Mouse Reeve
0c6049b81c Discard remote boosts 2020-12-18 12:38:27 -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
d024d44b79 Fixes incoming tests 2020-12-17 13:46:32 -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
a3c7d324d6 Sanitize incoming html 2020-12-16 16:47:23 -08:00
Mouse Reeve
ef92e562fd
Merge pull request #382 from mouse-reeve/switch-edition
Adds shelf info to book page
2020-12-16 14:58:36 -08:00
Mouse Reeve
8a1800ea26 Federate shelve activities when switching editions 2020-12-16 13:59:18 -08:00
Mouse Reeve
da05b99bb8 Fixes incoming shelve activity 2020-12-15 18:57:17 -08:00
Mouse Reeve
bde75766f2 test for registration and password reset 2020-12-15 16:36:22 -08:00
Mouse Reeve
ee2121095c Separate update editon and work functions 2020-12-15 12:39:09 -08:00
Mouse Reeve
2ef4df41b4 Fixes boosts 2020-12-15 11:54:57 -08:00
Mouse Reeve
8787599692 tests unfavorite 2020-12-14 13:04:07 -08:00
Mouse Reeve
1bcae45145 Remove notifications related to deleted statuses 2020-12-14 12:54:39 -08:00
Mouse Reeve
d49e49f021 Notify mentioned users 2020-12-14 12:31:11 -08:00
Mouse Reeve
8d27f02a9a Fixes typo in handle_unfollow 2020-12-14 11:46:31 -08:00
Mouse Reeve
171b8c75ae use require_POST decorator in inbox 2020-12-14 11:29:22 -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
44cbf7c07f Fixes checking privacy when serializing status 2020-12-13 14:35:56 -08:00
Mouse Reeve
47981dc15e Show year in time_since when ambiguous 2020-12-12 20:02:14 -08:00
Mouse Reeve
b61a7cccff Use trimmedwords_html instead of a custom filter 2020-12-12 19:34:51 -08:00
Mouse Reeve
cb28c19abc Use get_data in resolving remote id 2020-12-12 15:19:57 -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
31a407d74a Use name field only for author name
It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
2020-12-12 09:53:21 -08:00
Mouse Reeve
6b9db97ab8 tests set_related_field 2020-12-09 13:11:42 -08:00
Mouse Reeve
ef2a07884f Throws validation error when remote_id is None 2020-12-09 11:57:29 -08:00
Mouse Reeve
4d4ee8b8c3 Starts getting reverse fields working for deserialization
also fixes the fields on the image model and runs a long overdue
migration
2020-12-07 18:28:42 -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
0a576c325c Fixes deserializing tags of varied types 2020-12-07 13:16:42 -08:00
Mouse Reeve
6817babf3c adds some tests for to_model 2020-12-07 12:19:15 -08:00
Mouse Reeve
f61fcb1261 Adds tests for resolve_remote_id 2020-12-07 10:46:41 -08:00
Mouse Reeve
74ac8d60f8 Starts adding tests for base_activity
includes init and find_existing_by_remote_id
2020-12-07 10:32:31 -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
142a39cf55 Updates remote user when refreshing key 2020-12-04 16:26:07 -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
bbbfbe721e Removes update user test 2020-12-03 16:23:13 -08:00
Mouse Reeve
b1640c5dc9 Sets mocks up for incoming tests 2020-12-03 13:35:51 -08:00
Mouse Reeve
9c6db1cc0e Updates connector tests 2020-12-03 13:22:50 -08:00
Mouse Reeve
e87236d78f Remove unnecessary user create action 2020-12-03 12:57:44 -08:00
Mouse Reeve
6d137ccada mock celery task in test signing 2020-12-03 12:50:21 -08:00
Mouse Reeve
77a1fc26f1 Save key pair when creating new User 2020-12-03 12:45:01 -08:00
Mouse Reeve
1610d81ce6 fixes some of the signing test issues 2020-11-30 19:53:42 -08:00
Mouse Reeve
fee5846aa8 Fixes generating new key paris for user
and the broadcast test
2020-11-30 19:33:50 -08:00
Mouse Reeve
96563598bf mock celery tasks for broadcast tests 2020-11-29 10:13:30 -08:00
Mouse Reeve
205fa0d465 set user's remote server in a celery task 2020-11-29 10:08:19 -08:00
Mouse Reeve
9ddd60ce16 Fixes broadcast tests 2020-11-29 09:40:15 -08:00
Mouse Reeve
76ce20a5e0 Fixes tests 2020-11-28 11:52:00 -08:00
Joel Bradshaw
7fadbeeb55 Merge branch 'main' into progress_update 2020-11-28 11:06:01 -08:00
Joel Bradshaw
a951f20ff6 Add a couple forgotten files 2020-11-28 00:36:01 -08:00
Joel Bradshaw
500f05266a Add option for progress percentage
And rework display on book page as well
2020-11-28 00:07:04 -08:00
Mouse Reeve
5638597112 Fixes errors caught in tests 2020-11-27 20:27:56 -08:00
Joel Bradshaw
9ed7d23000 Test updating a progress
Also remove spurious whitespace change
2020-11-27 18:19:12 -08:00
Joel Bradshaw
6455cc7fe9 Add initial tests and some fixes
Make timezones aware, and create a progress update if we can upon
starting a readthrough
2020-11-27 18:16:13 -08:00
Joel Bradshaw
3cb28273c4 Merge branch 'main' into progress_update 2020-11-27 17:05:54 -08:00
Joel Bradshaw
d8b2afff3d Replace naive datetimes with aware ones 2020-11-27 16:35:03 -08:00
Joel Bradshaw
5f2ac6d961 Rename fr_* to bw_* 2020-11-27 16:12:47 -08:00
Mouse Reeve
f593970332 Merge branch 'main' into refactor-bookwyrm-connector 2020-11-27 14:26:02 -08:00
Mouse Reeve
9e48328e9e Mocks broadcast task for outgoing shelve tests 2020-11-27 14:18:45 -08:00
Mouse Reeve
4ec557fc5d fixes unit tests for incoming and outgoing follows 2020-11-27 14:15:13 -08:00
Mouse Reeve
f173d674ac Mock fetch_user function which makes http request 2020-11-27 13:53:38 -08:00
Mouse Reeve
a8f3ddec05 Trying to avoid issues from execusing http requests 2020-11-27 13:39:33 -08:00
Mouse Reeve
829615cdd7 Fixes celery mocks on more signature unit tests 2020-11-27 13:18:10 -08:00
Mouse Reeve
73279d65d7 Fix test remote signer and comment out failing tests 2020-11-27 13:08:01 -08:00
Mouse Reeve
48ab993861 Mocks celery task for follow request 2020-11-27 13:02:26 -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
257a29dcfd Comment out failing tests
Obviously this is not a SOLUTION, it's an intermediary step in resolving
the redis dependency issues. this PR isn't mergable until the tests are
restored.
2020-11-27 11:53:30 -08:00
Mouse Reeve
9b79eb5fc3 Removes outdated test of bookwyrm connector updater 2020-11-25 11:44:19 -08:00
Mouse Reeve
4f6ce0307d fixes import in abstract connector unit test 2020-11-25 11:24:36 -08:00
Mouse Reeve
9b57cfd331 Fixes default lists on activitypub dataclasses 2020-11-25 10:45:39 -08:00
Mouse Reeve
641ac22786 remove outdated tests 2020-11-24 16:26:28 -08:00
Mouse Reeve
86504989b4 fixes import matching with local books 2020-11-13 09:59:57 -08:00
Jim Fingal
1f9891dcf5 Create example marker to avoid tests that require external domain 2020-11-08 13:07:37 -08:00
Mouse Reeve
cfa4cb015d corrects tests for latest code changes 2020-11-07 17:48:50 -08:00
Mouse Reeve
842291d729 Fixes shelving tests 2020-11-02 16:28:02 -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
c43c566783 Removes tests of deleted code 2020-10-27 11:55:15 -07:00
Mouse Reeve
c0f51fa6aa Handle incomign update user activities 2020-10-16 16:06:45 -07:00
Mouse Reeve
4f07a567bd Shelving tests 2020-10-16 15:07:41 -07:00
Mouse Reeve
75c695b3c6 Updates and tests outgoing reject 2020-10-16 14:28:25 -07:00
Mouse Reeve
a567bd4e61 Simplifies outgoing follow logic 2020-10-16 14:14:07 -07:00
Mouse Reeve
694de44f3f reorganize incoming/outgoing tests 2020-10-16 14:04:06 -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
7a01d284c6 Incoming follow accept test 2020-10-16 09:23:14 -07:00
Mouse Reeve
2d2863d4a8 Adds more incoming follow test cases 2020-10-15 17:46:23 -07:00
Mouse Reeve
db18014325 Adds test for incoming follow request 2020-10-15 17:32:53 -07:00
Mouse Reeve
e8ef8f7101 Fixes data encoding for signing tests 2020-10-15 10:55:04 -07:00
Mouse Reeve
71d5c790b8
Merge pull request #200 from mouse-reeve/books-managers-tests
Books managers tests
2020-09-23 07:38:06 -07:00
Mouse Reeve
80cb1c3de2 Adds more tests for books_manager
from 47% to 77%
2020-09-21 11:14:56 -07:00
Mouse Reeve
425da16fd6 Fixes linter issues 2020-09-21 10:25:26 -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