aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-27 17:12:46 +0100
committercodl <[email protected]>2017-11-27 17:13:54 +0100
commit80b1ce61c91d173829dc4b130a2b5b4fbec76424 (patch)
treec94dd7fa4941142f85a47d1d155df09ad81b107a /tests
parentcfc6ecc908d102e7886d37ea1f64dd7ec6e2c047 (diff)
downloadmastodon.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.credentials1
-rw-r--r--tests/client.credentials2
-rw-r--r--tests/test_constructor.py4
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 @@
1foo
2bar
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
5def test_constructor_from_filenames(): 5def 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'
Powered by cgit v1.2.3 (git 2.41.0)