From 80b1ce61c91d173829dc4b130a2b5b4fbec76424 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 17:12:46 +0100 Subject: move test credential files to /tests/ i didnt even realise i put them there whoops --- access.credentials | 1 - client.credentials | 2 -- tests/access.credentials | 1 + tests/client.credentials | 2 ++ tests/test_constructor.py | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 access.credentials delete mode 100644 client.credentials create mode 100644 tests/access.credentials create mode 100644 tests/client.credentials diff --git a/access.credentials b/access.credentials deleted file mode 100644 index 7601807..0000000 --- a/access.credentials +++ /dev/null @@ -1 +0,0 @@ -baz diff --git a/client.credentials b/client.credentials deleted file mode 100644 index 3bd1f0e..0000000 --- a/client.credentials +++ /dev/null @@ -1,2 +0,0 @@ -foo -bar 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 @@ +foo +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 def test_constructor_from_filenames(): api = Mastodon( - 'client.credentials', - access_token = 'access.credentials') + 'tests/client.credentials', + access_token = 'tests/access.credentials') assert api.client_id == 'foo' assert api.client_secret == 'bar' assert api.access_token == 'baz' -- cgit v1.2.3