Updated tests and Changelog
authorMarek Marecki <marekjm@taistelu.com>
Sat, 7 Sep 2013 19:49:03 +0000 (21:49 +0200)
committerMarek Marecki <marekjm@taistelu.com>
Sat, 7 Sep 2013 19:49:03 +0000 (21:49 +0200)
Changelog.markdown
diaspy/streams.py
tests.py

index 2470848c7aa6c5f2812da26e4ef360bc78797b8d..621018c0e3355932ab51e8c86f0f2a6de6010ce9 100644 (file)
@@ -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`,
index 26c88008c1e6d7a04cfb0b4d85b6bb63b25edc1b..e17494782975d647d2ddf7667462c1278d2c95c9 100644 (file)
@@ -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
 
index b023bfc2060d5752c8c7e03aa263a4315bb92a35..1dbec1a7a0cfe2aba8084be24af14a3f94dd7b84 100644 (file)
--- 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())