9d502f5ee2
Use setUpTestData() to speed up tests
...
Pylint's `bad-classmethod-argument` is disabled for each definition
to avoid rewriting the method bodies just to rename `self` → `cls`.
This can be done gradually, as the setUpTestData methods are modified
along the way.
2023-12-11 19:40:30 -03:00
a0b7112c9c
Merge branch 'main' into gts
2023-04-14 18:24:02 +10:00
98726585f6
oops black
2023-04-14 18:20:06 +10:00
8a8af4e909
fix tests and make pylint happier
2023-04-14 18:03:51 +10:00
123628c66a
fix tests and formatting
2023-04-13 22:33:54 +10:00
Josh Soref
4607d30cad
spelling: signatures
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
12ed0f46f3
Fixes mocks for tests
2023-02-20 12:23:18 -08:00
9be2f00064
Update test_signing.py
2023-01-26 07:19:53 -08:00
f4de00088f
Merge branch 'main' into authorized-fetch
2023-01-26 06:22:03 -08:00
9fdcc7debd
Fixes mocks in tests
2023-01-25 09:32:45 -08:00
0da5473b0c
black formatting
2023-01-20 16:31:27 +11:00
7eb2a82e5f
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-07-26 15:46:18 -07:00
9921a1e754
Various pylint complaince fixes
2022-04-08 14:23:37 -07:00
8cc4427e60
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-01-13 11:37:54 -08:00
Renato "Lond" Cerqueira
097d86454a
Add signatures to requests to mastodon to support authorized fetch mode
...
When mastodon is in authorized fetch mode any request has to be signed
or it fails with 401. This adds the needed signature to the requests
made to discover the actor when receiving something from mastodon (such
as a follow request)
2022-01-05 15:46:42 +01:00
7a89552892
Updates test_* tests
2021-12-09 13:02:23 -08:00
bb94995389
Where you need one mock, you probably need the other
2021-09-06 14:48:45 -07:00
a84a744e8d
Track changed fields in activity to model code
2021-08-03 08:48:15 -07:00
6d8bced0f1
Refactors test mocks
2021-08-02 16:05:40 -07:00
Joachim
b7965ce2ae
Fix tests
2021-05-27 21:37:27 +02:00
Joachim
2ea1cd8319
Tests
2021-05-26 23:57:29 +02:00
3ade2d3bb1
New version of black, new whitespace
2021-04-26 09:15:42 -07:00
70296e760b
Runs black
2021-03-08 08:49:10 -08:00
91908eb1b6
Smarter way of inferring serializers (which are explicitly present)
2021-02-16 18:59:50 -08:00
a3b7063e4b
makes inbox csrf exempt
2021-02-16 18:07:57 -08:00
7e987fc446
Updates unit tests for new username handling
...
still some failing tho
2020-12-27 17:21:01 -08:00
142a39cf55
Updates remote user when refreshing key
2020-12-04 16:26:07 -08:00
6d137ccada
mock celery task in test signing
2020-12-03 12:50:21 -08:00
77a1fc26f1
Save key pair when creating new User
2020-12-03 12:45:01 -08:00
1610d81ce6
fixes some of the signing test issues
2020-11-30 19:53:42 -08:00
76ce20a5e0
Fixes tests
2020-11-28 11:52:00 -08:00
4ec557fc5d
fixes unit tests for incoming and outgoing follows
2020-11-27 14:15:13 -08:00
f173d674ac
Mock fetch_user function which makes http request
2020-11-27 13:53:38 -08:00
a8f3ddec05
Trying to avoid issues from execusing http requests
2020-11-27 13:39:33 -08:00
829615cdd7
Fixes celery mocks on more signature unit tests
2020-11-27 13:18:10 -08:00
73279d65d7
Fix test remote signer and comment out failing tests
2020-11-27 13:08:01 -08:00
48ab993861
Mocks celery task for follow request
2020-11-27 13:02:26 -08:00
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
Jim Fingal
1f9891dcf5
Create example marker to avoid tests that require external domain
2020-11-08 13:07:37 -08:00
cfa4cb015d
corrects tests for latest code changes
2020-11-07 17:48:50 -08:00
0c73a1f42e
updates test data and serialization
2020-11-02 16:24:56 -08:00
e8ef8f7101
Fixes data encoding for signing tests
2020-10-15 10:55:04 -07:00
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
f77c156733
rename main code directory
2020-09-17 13:30:54 -07:00