Commits

sakito  committed fe7a85b Merge

flow: Merged <feature> 't21' to <develop> ('develop').

  • Participants
  • Parent commits 8fedae9, 60b4fea
  • Branches develop

Comments (0)

Files changed (3)

File tests/test_version.py

 
 import unittest
 
+import tweepy
 import tweepy2
 from tweepy2 import version
 
     def test_get_hg_changeset(self):
         self.assertEqual('571', version.get_hg_changeset())
 
+    def test_api_version(self):
+        api = tweepy.API()
+        self.assertEqual('/1', api.api_root)
+        self.assertEqual('1', tweepy.API_VERSION)
+
+        api = tweepy2.API()
+        self.assertEqual('/1.1', api.api_root)
+        self.assertEqual('1.1', tweepy2.API_VERSION)
+
 if __name__ == '__main__':
     unittest.main()

File tweepy/__init__.py

 """
 Tweepy Twitter API library
 """
+API_VERSION = '1'
 __version__ = '1.11proxy4'
 __author__ = 'Joshua Roesslein'
 __license__ = 'MIT'

File tweepy2/__init__.py

 Tweepy Twitter API library
 """
 VERSION = (2, 0, 7, 'final', 0)
+API_VERSION = '1.1'
 __author__ = 'Joshua Roesslein'
 __license__ = 'MIT'