Verify deterministic behavior of a function that returns a fixed output
Preconditions (2)
Step 1: Create a function named get_fixed_value that always returns the integer 42
Step 2: Write a pytest test function named test_get_fixed_value
Step 3: Call get_fixed_value inside the test
Step 4: Assert that the returned value is exactly 42
✅ Expected Result: The test passes every time with the value 42 returned and assertion successful