Skip to content

Commit

Permalink
Merge pull request #3390 from jacquerie/remove-small_app 616 tests: r…
Browse files Browse the repository at this point in the history
…emove unused small_app fixture
  • Loading branch information
jacquerie authored and turtle321 committed May 2, 2018
2 parents bf14ab1 + b5d573a commit 4e8530c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 376 deletions.
344 changes: 0 additions & 344 deletions inspirehep/demosite/data/demo-records-small.xml

This file was deleted.

32 changes: 0 additions & 32 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,38 +114,6 @@ def isolated_app(app):
db.session.rollback()


@pytest.fixture(scope='module')
def small_app():
"""Flask application with few records and module scope.
.. deprecated:: 2017-09-18
Use ``app`` instead.
"""
app = create_app()
app.config.update({'DEBUG': True})

with app.app_context():
# Celery task imports must be local, otherwise their
# configuration would use the default pickle serializer.
from inspirehep.modules.migrator.tasks import migrate

db.drop_all()
db.create_all()

_es = app.extensions['invenio-search']
list(_es.delete(ignore=[404]))
list(_es.create(ignore=[400]))

init_all_storage_paths()
init_users_and_permissions()
init_collections()

migrate('./inspirehep/demosite/data/demo-records-small.xml', wait_for_results=True)
es.indices.refresh('records-hep')

yield app


@pytest.fixture()
def app_client(app):
"""Flask test client for the application.
Expand Down

0 comments on commit 4e8530c

Please sign in to comment.