PyTest - Fixtures
You want to share a fixture that provides a database connection across multiple test files. You place this fixture in
conftest.py:
import pytest
@pytest.fixture(scope="session")
def db_connection():
conn = create_connection()
yield conn
conn.close()
What is the best reason to use scope="session" here?