original_docstring: Insert fixtures for models, tests purpose only
docstring: Insert fixtures for models, tests purpose only
docstring_tokens: Insert fixtures for models tests purpose only
code: def upgrade():
      """Insert fixtures for models, tests purpose only"""
      users = [generate_users(i) for i in range(1, 52)]
      articles = [generate_articles(i, 50) for i in range(1, 200)]
  
      article = table(
          'article',
          sa.Column('id', sa.Integer(), nullable=False, primary_key=True, autoincrement=True),
          sa.Column('title', sa.String(length=100), nullable=False),
          sa.Column('content', sa.Text(), nullable=False),
          sa.Column('user_id', sa.Integer(), nullable=True),
      )
  
      user = table(
          'user',
          sa.Column('id', sa.Integer(), nullable=False, primary_key=True, autoincrement=True),
          sa.Column('username', sa.String(length=80), nullable=False),
          sa.Column('email', sa.String(length=120), nullable=False),
      )
  
      op.bulk_insert(user, users)
      op.bulk_insert(article, articles)
code_tokens: def upgrade ( ) : users = [ generate_users ( i ) for i in range ( 1 , 52 ) ] articles = [ generate_articles ( i , 50 ) for i in range ( 1 , 200 ) ] article = table ( 'article' , sa . Column ( 'id' , sa . Integer ( ) , nullable = False , primary_key = True , autoincrement = True ) , sa . Column ( 'title' , sa . String ( length = 100 ) , nullable = False ) , sa . Column ( 'content' , sa . Text ( ) , nullable = False ) , sa . Column ( 'user_id' , sa . Integer ( ) , nullable = True ) , ) user = table ( 'user' , sa . Column ( 'id' , sa . Integer ( ) , nullable = False , primary_key = True , autoincrement = True ) , sa . Column ( 'username' , sa . String ( length = 80 ) , nullable = False ) , sa . Column ( 'email' , sa . String ( length = 120 ) , nullable = False ) , ) op . bulk_insert ( user , users ) op . bulk_insert ( article , articles )
short_docstring: Insert fixtures for models, tests purpose only
short_docstring_tokens: Insert fixtures for models tests purpose only
comment: """Insert fixtures for models, tests purpose only"""