forked from burnash/gspread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed config from mock tests, removed 2.5 from travis
- Loading branch information
Showing
3 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. " | ||
|
@@ -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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters