Skip to content

Commit

Permalink
tests: fixed example app configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva authored and lnielsen committed Nov 26, 2018
1 parent a40a602 commit 40a88ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
from invenio_access.permissions import superuser_access
from invenio_accounts import InvenioAccounts
from invenio_accounts.models import Role, User
from invenio_db import db as db_
from invenio_db import InvenioDB
from invenio_db import db as db_
from invenio_oauth2server import InvenioOAuth2Server, \
InvenioOAuth2ServerREST, current_oauth2server
from invenio_oauth2server.models import Token
Expand Down
14 changes: 6 additions & 8 deletions tests/test_example_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@
"""Test example app."""

import os
import signal
import subprocess
import sys
import time
from os.path import abspath, dirname, join


def setup_module(module):
"""Set up before all tests."""
# switch to examples/app.py
exampleappdir = os.path.join(os.path.split(sys.path[0])[0],
'examples')
os.chdir(exampleappdir)

# Go to example directory
project_dir = dirname(dirname(abspath(__file__)))
exampleapp_dir = join(project_dir, 'examples')
os.chdir(exampleapp_dir)


def teardown_module(module):
Expand Down

0 comments on commit 40a88ad

Please sign in to comment.