Skip to content

Fix issue where a non-boolean variable passed into a testclass would skip the test#220

Merged
jcollins1983 merged 1 commit intoPyFixate:mainfrom
Overlord360:skip-test-fix
Mar 1, 2026
Merged

Fix issue where a non-boolean variable passed into a testclass would skip the test#220
jcollins1983 merged 1 commit intoPyFixate:mainfrom
Overlord360:skip-test-fix

Conversation

@Overlord360
Copy link
Contributor

@Overlord360 Overlord360 commented Jan 14, 2025

In a test script we were accidentally passing a variable that was not consumed by the function and therefore was passed to the parent class (the testclass) this would then be interpreted as the "skip" variable. The check in sequencer.py does not check if the value is a boolean.

This could result in a code mistake in a test script "silently" skipping a test without being noticed. Unless you go look at the logs.

The issue test script:
image

Sequencer.py
image

Copy link
Collaborator

@jcollins1983 jcollins1983 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a sensible change.

@jcollins1983 jcollins1983 merged commit 5a0b552 into PyFixate:main Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants