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 /tests/setup_app.sql
parentd76c26e4b9f3975a3f0d87db9f73db2188940767 (diff)
downloadmastodon.py-7d51c0b17efe21f552f5d7f47b276810f9aa0280.tar.gz
update test docs
Diffstat (limited to 'tests/setup_app.sql')
-rw-r--r--tests/setup_app.sql84
1 files changed, 0 insertions, 84 deletions
diff --git a/tests/setup_app.sql b/tests/setup_app.sql
deleted file mode 100644
index 81f1e18..0000000
--- a/tests/setup_app.sql
+++ /dev/null
@@ -1,84 +0,0 @@
1DELETE FROM oauth_access_tokens WHERE id = 6543210987654321;
2DELETE FROM oauth_access_tokens WHERE id = 1234567890123456;
3DELETE FROM oauth_applications WHERE id = 1234567890123456;
4DELETE FROM users WHERE id = 1234567890123456;
5DELETE FROM accounts WHERE id = 1234567890123456;
6
7INSERT INTO accounts (
8 id,
9 username,
10 created_at,
11 updated_at
12) VALUES (
13 1234567890123456,
14 'mastodonpy_test',
15 now(),
16 now()
17);
18
19INSERT INTO users (
20 id,
21 email,
22 account_id,
23 created_at,
24 updated_at,
25 confirmed_at,
26 locale
27) VALUES (
28 1234567890123456,
29 'mastodonpy_test@localhost:3000',
30 1234567890123456,
31 now(),
32 now(),
33 now(),
34 'ja' -- japanese locale for unicode testing :p
35);
36
37
38
39INSERT INTO oauth_applications (
40 id,
41 name,
42 uid,
43 secret,
44 redirect_uri,
45 scopes,
46 owner_type,
47 owner_id,
48 created_at,
49 updated_at
50) VALUES (
51 1234567890123456,
52 'Mastodon.py test suite',
53 '__MASTODON_PY_TEST_CLIENT_ID',
54 '__MASTODON_PY_TEST_CLIENT_SECRET',
55 'urn:ietf:wg:oauth:2.0:oob',
56 'read write follow',
57 'User',
58 1234567890123456,
59 now(),
60 now()
61);
62
63INSERT INTO oauth_access_tokens (
64 id,
65 token,
66 scopes,
67 application_id,
68 resource_owner_id,
69 created_at
70) VALUES (
71 1234567890123456,
72 '__MASTODON_PY_TEST_ACCESS_TOKEN',
73 'read write follow',
74 1234567890123456,
75 1234567890123456,
76 now()
77), (
78 6543210987654321,
79 '__MASTODON_PY_TEST_ACCESS_TOKEN_2',
80 'read write follow',
81 1234567890123456,
82 1,
83 now()
84);
Powered by cgit v1.2.3 (git 2.41.0)