aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-27 20:51:12 +0100
committercodl <[email protected]>2017-11-27 20:51:12 +0100
commit8c9dcbe8710a425abee860affbd8951cf19609e1 (patch)
treeafbd84c82d5ac86e5240836c37687857528fd85d /tests
parent8601a8a5e1a4b2e3f7d392b9176d33b42dc0d59a (diff)
downloadmastodon.py-8c9dcbe8710a425abee860affbd8951cf19609e1.tar.gz
shouting!!!!!! ahhh python 2 is bad
Diffstat (limited to 'tests')
-rw-r--r--tests/test_constructor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_constructor.py b/tests/test_constructor.py
index a599df6..cdeb962 100644
--- a/tests/test_constructor.py
+++ b/tests/test_constructor.py
@@ -4,12 +4,12 @@ from mastodon.Mastodon import MastodonIllegalArgumentError
4 4
5def test_constructor_from_filenames(tmpdir): 5def test_constructor_from_filenames(tmpdir):
6 client = tmpdir.join('client') 6 client = tmpdir.join('client')
7 client.write_text('foo\nbar\n', 'UTF-8') 7 client.write_text(u'foo\nbar\n', 'UTF-8')
8 access = tmpdir.join('access') 8 access = tmpdir.join('access')
9 access.write_text('baz\n', 'UTF-8') 9 access.write_text(u'baz\n', 'UTF-8')
10 api = Mastodon( 10 api = Mastodon(
11 str(client), 11 str(client),
12 access_token = str(access)) 12 access_token=str(access))
13 assert api.client_id == 'foo' 13 assert api.client_id == 'foo'
14 assert api.client_secret == 'bar' 14 assert api.client_secret == 'bar'
15 assert api.access_token == 'baz' 15 assert api.access_token == 'baz'
Powered by cgit v1.2.3 (git 2.41.0)