Exemplo n.º 1
0
 def testParameterAddition(self):
   """Tests that specified parameters are added appropriately."""
   cmd = queries._GenerateBigQueryCommand('project', {
       '': {
           'string': 'string_value'
       },
       'INT64': {
           'int': 1
       }
   })
   self.assertIn('--parameter=string::string_value', cmd)
   self.assertIn('--parameter=int:INT64:1', cmd)
Exemplo n.º 2
0
 def testNoParametersSpecified(self):
   """Tests that no parameters are added if none are specified."""
   cmd = queries._GenerateBigQueryCommand('project', {})
   for element in cmd:
     self.assertFalse(element.startswith('--parameter'))