Use pytest fixture as function argument to provide test data
Preconditions (2)
Step 1: Create a fixture named 'sample_data' that returns {'name': 'Alice', 'age': 30}
Step 2: Write a test function 'test_user_data' that accepts 'sample_data' as an argument
Step 3: Inside the test, assert that 'name' in sample_data equals 'Alice'
Step 4: Assert that 'age' in sample_data equals 30
Step 5: Run the test using pytest
✅ Expected Result: The test passes successfully, confirming the fixture data is correctly injected and assertions are true