Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Error running test(Ubuntu) #847

Open
azdonald opened this issue Jul 25, 2019 · 0 comments
Open

Error running test(Ubuntu) #847

azdonald opened this issue Jul 25, 2019 · 0 comments

Comments

@azdonald
Copy link

I get the following error when I run python setup.py test

request = <SubRequest 'app' for >

@pytest.fixture()
def app(request):
    app = Flask(__name__)
    app.response_class = Response
    app.debug = True
    app.config['SECRET_KEY'] = 'secret'
    app.config['TESTING'] = True
    app.config['LOGIN_DISABLED'] = False
    app.config['WTF_CSRF_ENABLED'] = False
    app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

    app.config['SECURITY_PASSWORD_SALT'] = 'salty'

    for opt in ['changeable', 'recoverable', 'registerable',
                'trackable', 'passwordless', 'confirmable']:
        app.config['SECURITY_' + opt.upper()] = opt in request.keywords

    if 'settings' in request.keywords:
      for key, value in request.keywords['settings'].kwargs.items():

E AttributeError: 'bool' object has no attribute 'kwargs'

tests/conftest.py:59: AttributeError

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant