Improve ExpectationsProcessor handling and add unit tests
This MR addresses the following improvements to ExpectationsProcessor:
- Fixes inconsistent expectation handling: Ensures a "Fail" test is correctly registered when xpass test fails. Prevents erroneous modifications to -skips.txt in "Flake" situations.
- Adds unit tests with pytest: Enhances code coverage and robustness of the ExpectationsProcessor.
-
Minor code cleanup: Resolves
ruff
linting errors.