aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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)