Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update .gitignore and put secret.sample.py for tests

  • Loading branch information...
commit a2803524786dff6d808eb38ec0f5ab25c2738cb3 1 parent af1c757
@andelf authored
View
3  .gitignore
@@ -3,3 +3,6 @@
*.pyo
test.py
*~
+tests/secret.py
+dist
+*.egg-info
View
4 qqweibo/__init__.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright 2011 andelf <andelf@gmail.com>
# See LICENSE for details.
-# Time-stamp: <2011-06-07 16:04:18 andelf>
+# Time-stamp: <2011-06-08 14:29:48 andelf>
from qqweibo.auth import OAuthHandler
from qqweibo.api import API
@@ -17,4 +17,4 @@
'ModelParser', 'JSONParser',
'MemoryCache', 'FileCache']
-version = '0.3.6'
+version = '0.3.7'
View
4 tests/secret.sample.py
@@ -0,0 +1,4 @@
+apiKey = 'your key'
+apiSecret = 'your secret'
+token = 'your token'
+tokenSecret = 'your token secret'
View
10 tests/test_pyqqweibo.py
@@ -5,7 +5,7 @@
# Created : Wed Jun 08 10:20:57 2011 by Feather.et.ELF
# Copyright : Feather Workshop (c) 2011
# Description : testcast
-# Time-stamp: <2011-06-08 14:09:37 andelf>
+# Time-stamp: <2011-06-08 14:27:52 andelf>
from __future__ import unicode_literals
from __future__ import print_function
@@ -83,10 +83,10 @@ class QWeiboTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
"""generate OAuthHandler"""
- auth = OAuthHandler('APIKEY',
- 'APISECRET')
- token = 'TOKEN'
- tokenSecret = 'TOKENSECRET'
+ import secret
+ auth = OAuthHandler(secret.apiKey, secret.apiSecret)
+ token = secret.token
+ tokenSecret = secret.tokenSecret
auth.setToken(token, tokenSecret)
cls.auth = auth
Please sign in to comment.
Something went wrong with that request. Please try again.