Skip to content

Commit

Permalink
Removed config from mock tests, removed 2.5 from travis
Browse files Browse the repository at this point in the history
  • Loading branch information
msuozzo committed Oct 19, 2015
1 parent a9581e6 commit 63d26ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.3"
Expand Down
6 changes: 2 additions & 4 deletions tests/mock_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class MockGspreadTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
try:
cls.config = test.read_config(test.CONFIG_FILENAME)
cls.gc = gspread.client.Client(auth={})
except IOError as e:
msg = "Can't find %s for reading test configuration. "
Expand All @@ -41,13 +40,12 @@ def setUp(self):
dev_email = '[email protected]'
feed_obj = test_utils.SpreadsheetFeed(updated, dev_email)

key = self.config.get('Spreadsheet', 'key')
title = self.config.get('Spreadsheet', 'title')
key = '0123456789ABCDEF'
title = 'This is a spreadsheet title'
user_name = 'First Last'
user_email = '[email protected]'
feed_obj.add_entry(key, title, user_name, user_email, updated)

feed = feed_obj.to_xml()
self.gc.get_spreadsheets_feed = mock.Mock(return_value=feed)


3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ envlist = py25,py26,py27,py33,py34
deps =
nose
mock
pycrypto
oauth2client
requests[security]
oauth2client
commands = nosetests -vv tests/mock_tests.py

0 comments on commit 63d26ce

Please sign in to comment.