Force raising an exception on utils.positional for one test.
Reviewed in https://codereview.appspot.com/6472061/.
This commit is contained in:
@@ -23,6 +23,7 @@ Unit tests for objects created from discovery documents.
|
||||
|
||||
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
|
||||
|
||||
import gflags
|
||||
import httplib2
|
||||
import os
|
||||
import sys
|
||||
@@ -53,6 +54,9 @@ from oauth2client.anyjson import simplejson
|
||||
|
||||
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
|
||||
|
||||
FLAGS = gflags.FLAGS
|
||||
FLAGS.positional_parameters_enforcement = 'EXCEPTION'
|
||||
|
||||
|
||||
def datafile(filename):
|
||||
return os.path.join(DATA_DIR, filename)
|
||||
|
||||
Reference in New Issue
Block a user