aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
commit3277ca777821e76955fb26d80788939a311db9db (patch)
treebef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/README.markdown
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/README.markdown')
-rw-r--r--tests/README.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/README.markdown b/tests/README.markdown
index 62b5e10..9c4fcae 100644
--- a/tests/README.markdown
+++ b/tests/README.markdown
@@ -26,9 +26,9 @@ This test suite uses [VCR.py][] to record requests to Mastodon and replay them i
26If you want to add or change tests, you will need a Mastodon development server running on `http://localhost:3000`, with the default `admin` user and default password. 26If you want to add or change tests, you will need a Mastodon development server running on `http://localhost:3000`, with the default `admin` user and default password.
27To set this up, follow the development guide and set up the database using "rails db:setup". 27To set this up, follow the development guide and set up the database using "rails db:setup".
28 28
29It also needs a test OAuth app-registriation and an additional test user to be set up by applying the provided `setup.sql` to Mastodon's database: 29It also needs various things to be set up for it. The following command should do the trick:
30 30
31 psql -d mastodon_development < tests/setup.sql 31 RAILS_ENV=development rails db:setup && RAILS_ENV=development bin/tootctl accounts create admin2 --email [email protected] --confirmed --role Owner && psql -d mastodon_development < ~/Mastodon.py/tests/setup.sql && sleep 4 && foreman start
32 32
33Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. 33Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator.
34 34
Powered by cgit v1.2.3 (git 2.41.0)