Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better exception reporting when --pgtap-uri or DATABASE_URL is missing #5

Open
lmergner opened this issue Jun 20, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@lmergner
Copy link
Owner

Better usage error when DATABASE_URL is not set...

ImportError while loading conftest '/Users/lmerg/code/pestle/tests/conftest.py'.
tests/conftest.py:11: in <module>
    engine = create_engine(DATABASE_URL)
../../.pyenv/versions/3.7.3/envs/test_pestle/lib/python3.7/site-packages/sqlalchemy/engine/__init__.py:435: in create_engine
    return strategy.create(*args, **kwargs)
../../.pyenv/versions/3.7.3/envs/test_pestle/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py:56: in create
    plugins = u._instantiate_plugins(kwargs)
E   AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
@lmergner lmergner added the bug Something isn't working label Jun 20, 2019
@lmergner lmergner changed the title Better exception reporting when DATABASE_URL is missing Better exception reporting when --pgtap-uri or DATABASE_URL is missing Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant