From 3277ca777821e76955fb26d80788939a311db9db Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 7 Nov 2022 23:11:30 +0200 Subject: Initial test fixing pass. Four tests still fail. --- tests/README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/README.markdown') 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 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. To set this up, follow the development guide and set up the database using "rails db:setup". -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: +It also needs various things to be set up for it. The following command should do the trick: - psql -d mastodon_development < tests/setup.sql + RAILS_ENV=development rails db:setup && RAILS_ENV=development bin/tootctl accounts create admin2 --email alice@example.com --confirmed --role Owner && psql -d mastodon_development < ~/Mastodon.py/tests/setup.sql && sleep 4 && foreman start Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. -- cgit v1.2.3