Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslynnwu committed Jul 9, 2020
1 parent 7d7b28f commit a094cec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apitools/gen/client_generation_test.py
Expand Up @@ -64,5 +64,14 @@ def testGeneration(self):

sys.path.insert(0, os.path.join(os.getcwd(), 'generated'))
# Ensure we can import the generated client.
client_file = '{}_{}_client.py'.format(*api.split('.'))
from itertools import islice
with open(os.path.join(os.getcwd(), 'generated', client_file)) as f:
logging.info('client is: \n\n{}'.format(
''.join(list(islice(f, 20)))
))
importlib.import_module('{}_{}_client'.format(
*api.split('.')))

if __name__ == '__main__':
unittest.main()

0 comments on commit a094cec

Please sign in to comment.