Skip to content

Commit

Permalink
tests: refactor tests
Browse files Browse the repository at this point in the history
* use client fixture instead of context manager
* remove jsonschemas_host fixture

Signed-off-by: Anna Trzcinska <anna.trzcinska@cern.ch>
  • Loading branch information
annatrz committed Aug 16, 2019
1 parent 3ac4535 commit 1d085d0
Show file tree
Hide file tree
Showing 27 changed files with 2,812 additions and 3,054 deletions.
5 changes: 3 additions & 2 deletions cap/alembic/fc5432c231b4_update_schema_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import sqlalchemy as sa
from alembic import op

from cap.types import json_type
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = 'fc5432c231b4'
Expand All @@ -37,7 +37,8 @@ def upgrade():
op.add_column('schema', sa.Column(
'record_schema', json_type, nullable=True))
op.add_column('schema', sa.Column('use_deposit_as_record',
sa.Boolean(create_constraint=False), nullable=True))
sa.Boolean(create_constraint=False),
nullable=True))
op.drop_column('schema', 'json')
op.drop_column('schema', 'is_deposit')
# ### end Alembic commands ###
Expand Down
Loading

0 comments on commit 1d085d0

Please sign in to comment.