Skip to content

Update Python unittests and apply Python standard - #394

Merged
chadlwilson merged 2 commits into
getgauge:masterfrom
sschulz92:UPDATE_PY_TESTS
Oct 1, 2024
Merged

chadlwilson merged 2 commits into
getgauge:masterfrom
sschulz92:UPDATE_PY_TESTS

Conversation

@sschulz92

Copy link
Copy Markdown
Contributor

While investigating into "Add support to skip scenarios on runtime" I stumbled about several smaller code-smells reported by Pylance. Boy-scout-rule-wise I would like to contribute them as part of this PR.

Out of curiosity: Is there a guideline which Python versions are supported? Could not find relevant information in the Gauge docs.

@chadlwilson

Copy link
Copy Markdown
Contributor

Automated tests are run against newest Python point release and the oldest supported Python point release, so 3.9 and 3.12 at time of writing. Logic being that the versions in between should also work.

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.9, 3.12]

But that doesn't mean that all possible features are supported, as you are aware of from #324 and #233 since the library is dependent on third party dependencies and is not tested with all possible Python language features that might need to be parsed :-/

There is https://github.com/getgauge/gauge-python/blob/master/tox.ini however I don't think this is used anywhere on the current build since being moved to GHA.

Comment thread getgauge/static_loader.py Resolved
@chadlwilson
chadlwilson enabled auto-merge (squash) October 1, 2024 05:53
@chadlwilson
chadlwilson merged commit 97093f6 into getgauge:master Oct 1, 2024
@sschulz92
sschulz92 deleted the UPDATE_PY_TESTS branch October 1, 2024 06:29
sschulz92 added a commit to sschulz92/gauge-python that referenced this pull request Oct 1, 2024
Signed-off-by: sschulz92 <[email protected]>
Co-authored-by: Chad Wilson <[email protected]>
Signed-off-by: sschulz92 <[email protected]>
sschulz92 added a commit to sschulz92/gauge-python that referenced this pull request Oct 1, 2024
Signed-off-by: sschulz92 <[email protected]>
Co-authored-by: Chad Wilson <[email protected]>
Signed-off-by: sschulz92 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants