Test fixture composition with pytest fixtures
Preconditions (2)
Step 1: Create a fixture named 'db_connection' that returns a string 'db_connected'
Step 2: Create another fixture named 'user' that depends on 'db_connection' fixture and returns 'user_from_' concatenated with the db_connection value
Step 3: Write a test function that uses the 'user' fixture
Step 4: Inside the test, assert that the 'user' fixture value equals 'user_from_db_connected'
✅ Expected Result: The test passes confirming that fixture composition works correctly