aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-29 23:06:28 +0100
committercodl <[email protected]>2017-11-29 23:46:51 +0100
commit7d51c0b17efe21f552f5d7f47b276810f9aa0280 (patch)
tree1a15a37b77727f197a60d1da643255252c4c1d11
parentd76c26e4b9f3975a3f0d87db9f73db2188940767 (diff)
downloadmastodon.py-7d51c0b17efe21f552f5d7f47b276810f9aa0280.tar.gz
update test docs
-rw-r--r--tests/README.markdown4
-rw-r--r--tests/setup.sql (renamed from tests/setup_app.sql)0
2 files changed, 2 insertions, 2 deletions
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
24 24
25If 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. 25If 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 26
27It also needs a test OAuth app to be set up by applying the provided `setup_app.sql` to Mastodon's database: 27It 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:
28 28
29 psql -d mastodon_development < tests/setup_app.sql 29 psql -d mastodon_development < tests/setup.sql
30 30
31Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator. 31Tests that send requests to Mastodon should be marked as needing VCR with the `pytest.mark.vcr` decorator.
32 32
diff --git a/tests/setup_app.sql b/tests/setup.sql
index 81f1e18..81f1e18 100644
--- a/tests/setup_app.sql
+++ b/tests/setup.sql
Powered by cgit v1.2.3 (git 2.41.0)