Verify shared fixture usage across multiple test files using conftest.py
Preconditions (2)
Step 1: Open conftest.py and define a fixture named 'sample_fixture' that returns the string 'shared data'
Step 2: In test_file1.py, write a test function that uses 'sample_fixture' and asserts the returned value is 'shared data'
Step 3: In test_file2.py, write another test function that uses 'sample_fixture' and asserts the returned value is 'shared data'
Step 4: Run pytest on the test directory to execute both test files
✅ Expected Result: Both test functions in test_file1.py and test_file2.py pass successfully, confirming the shared fixture from conftest.py is used correctly