Test fixture dependency using 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_data' that uses 'db_connection' fixture and returns a dictionary {'user': 'test_user', 'status': 'active'}
Step 3: Write a test function 'test_user_status' that uses 'user_data' fixture
Step 4: Inside the test, assert that 'user_data' dictionary has key 'status' with value 'active'
Step 5: Run the test using pytest
✅ Expected Result: The test passes successfully, confirming that the fixture 'user_data' correctly uses the 'db_connection' fixture and provides expected data