diff options
author | codl <[email protected]> | 2017-11-27 17:12:46 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 17:13:54 +0100 |
commit | 80b1ce61c91d173829dc4b130a2b5b4fbec76424 (patch) | |
tree | c94dd7fa4941142f85a47d1d155df09ad81b107a /tests | |
parent | cfc6ecc908d102e7886d37ea1f64dd7ec6e2c047 (diff) | |
download | mastodon.py-80b1ce61c91d173829dc4b130a2b5b4fbec76424.tar.gz |
move test credential files to /tests/
i didnt even realise i put them there whoops
Diffstat (limited to 'tests')
-rw-r--r-- | tests/access.credentials | 1 | ||||
-rw-r--r-- | tests/client.credentials | 2 | ||||
-rw-r--r-- | tests/test_constructor.py | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/access.credentials b/tests/access.credentials new file mode 100644 index 0000000..7601807 --- /dev/null +++ b/tests/access.credentials | |||
@@ -0,0 +1 @@ | |||
baz | |||
diff --git a/tests/client.credentials b/tests/client.credentials new file mode 100644 index 0000000..3bd1f0e --- /dev/null +++ b/tests/client.credentials | |||
@@ -0,0 +1,2 @@ | |||
1 | foo | ||
2 | bar | ||
diff --git a/tests/test_constructor.py b/tests/test_constructor.py index 720f58d..fac3763 100644 --- a/tests/test_constructor.py +++ b/tests/test_constructor.py | |||
@@ -4,8 +4,8 @@ from mastodon.Mastodon import MastodonIllegalArgumentError | |||
4 | 4 | ||
5 | def test_constructor_from_filenames(): | 5 | def test_constructor_from_filenames(): |
6 | api = Mastodon( | 6 | api = Mastodon( |
7 | 'client.credentials', | 7 | 'tests/client.credentials', |
8 | access_token = 'access.credentials') | 8 | access_token = 'tests/access.credentials') |
9 | assert api.client_id == 'foo' | 9 | assert api.client_id == 'foo' |
10 | assert api.client_secret == 'bar' | 10 | assert api.client_secret == 'bar' |
11 | assert api.access_token == 'baz' | 11 | assert api.access_token == 'baz' |