From f91374cefaaacc73fade4d3c7a159607078b7958 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Sat, 7 Sep 2013 21:49:03 +0200 Subject: [PATCH] Updated tests and Changelog --- Changelog.markdown | 3 ++- diaspy/streams.py | 1 - tests.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Changelog.markdown b/Changelog.markdown index 2470848..621018c 100644 --- a/Changelog.markdown +++ b/Changelog.markdown @@ -46,11 +46,12 @@ And the test suite was updated. Yay! * __new__: `diaspy.settings.Profile.getName()` method, * __new__: `diaspy.settings.Profile.getBio()` method, * __new__: `diaspy.settings.Profile.getLocation()` method, -* __new__: `diaspy.settings.Profile.getLocation()` method, +* __new__: `diaspy.settings.Profile.getTags()` method, * __new__: `diaspy.settings.Profile.getGender()` method, * __new__: `diaspy.settings.Profile.getBirthDate()` method, * __new__: `diaspy.settings.Profile.isSearchable()` method, * __new__: `diaspy.settings.Profile.isNSFW()` method, +* __new__: `provider_display_name` parameter in `diaspy.streams.Stream.post()` (thanks @svbergerem), * __upd__: `remeber_me` parameter in `diaspy.connection.Connection.login()`, * __upd__: you must supply `username` and `password` parameters on init of `diaspy.connection.Connection`, diff --git a/diaspy/streams.py b/diaspy/streams.py index 26c8800..e174947 100644 --- a/diaspy/streams.py +++ b/diaspy/streams.py @@ -248,7 +248,6 @@ class Stream(Generic): 'x-csrf-token': repr(self._connection)}) if request.status_code != 201: raise Exception('{0}: Post could not be posted.'.format(request.status_code)) - post = Post(self._connection, request.json()['id']) return post diff --git a/tests.py b/tests.py index b023bfc..1dbec1a 100644 --- a/tests.py +++ b/tests.py @@ -246,7 +246,7 @@ class SettingsTests(unittest.TestCase): self.assertEqual(testconf.user_is_nsfw, self.profile.isNSFW()) def testGettingTags(self): - self.assertEqual(sorted(testconf.user_tags), sorted(profile.getTags())) + self.assertEqual(sorted(testconf.user_tags), sorted(self.profile.getTags())) def testGettingLanguages(self): self.assertIn(('English', 'en'), self.account.getLanguages()) -- 2.25.1