def pytest_runtest_teardown(item, nextitem):
    """If the app fixture was used, clear the database after the test"""
    if 'app' in item.fixturenames:
        for collection in collections:
            collection.drop_collection()
dataset/ETHPy150Open pytent/pytentd/tentd/tests/conftest.py/pytest_runtest_teardown/original