Conditions | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
1 | # pylint: disable=redefined-outer-name |
||
45 | @pytest.yield_fixture(scope='module') |
||
46 | def db_engine(app): |
||
47 | _db.app = app |
||
48 | |||
49 | with app.app_context(): |
||
50 | _db.create_all() |
||
51 | |||
52 | yield _db |
||
53 | |||
54 | # http://stackoverflow.com/a/6810165/1255482 |
||
55 | _db.session.close() # pylint: disable=no-member |
||
56 | |||
57 | try: |
||
58 | _db.drop_all() |
||
59 | except OperationalError: |
||
60 | # Allow tests to be killed cleanly |
||
61 | pass |
||
62 | |||
74 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.