diff options
Diffstat (limited to 'tests/README.markdown')
-rw-r--r-- | tests/README.markdown | 4 |
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 | |||
26 | If 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. | 26 | If 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. |
27 | To set this up, follow the development guide and set up the database using "rails db:setup". | 27 | To set this up, follow the development guide and set up the database using "rails db:setup". |
28 | 28 | ||
29 | It 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: | 29 | It 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 | ||
33 | Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. | 33 | Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. |
34 | 34 | ||