From 7d51c0b17efe21f552f5d7f47b276810f9aa0280 Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 29 Nov 2017 23:06:28 +0100 Subject: [PATCH] update test docs --- tests/README.markdown | 4 ++-- tests/{setup_app.sql => setup.sql} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/{setup_app.sql => setup.sql} (100%) diff --git a/tests/README.markdown b/tests/README.markdown index ad27a31..5d8d90e 100644 --- a/tests/README.markdown +++ b/tests/README.markdown @@ -24,9 +24,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. -It also needs a test OAuth app to be set up by applying the provided `setup_app.sql` to Mastodon's database: +It also needs a test OAuth app and an additional test user to be set up by applying the provided `setup.sql` to Mastodon's database: - psql -d mastodon_development < tests/setup_app.sql + psql -d mastodon_development < tests/setup.sql Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. diff --git a/tests/setup_app.sql b/tests/setup.sql similarity index 100% rename from tests/setup_app.sql rename to tests/setup.sql