def get_create_test_view_sql():
 dir_path = os.path.dirname(os.path.abspath(__file__))
 sql_path = os.path.join(dir_path, 'sql', 'tko-test-view-2.sql')
 return open(sql_path).read()

def get_create_test_view_sql ( ) : dir_path = os . path . dirname ( os . path . abspath ( __file__ ) ) sql_path = os . path . join ( dir_path , 'sql' , 'tko-test-view-2.sql' ) return open ( sql_path ) . read ( )
returns the sql code that creates the test view .