Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python tests rewrite #1387

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Python tests rewrite #1387

merged 3 commits into from
Nov 30, 2023

Conversation

TwoOfTwelve
Copy link
Contributor

@TwoOfTwelve TwoOfTwelve commented Nov 21, 2023

Rewrite for the python language module tests with the new test syntax.

Also contains a small fix for the test library.
The code, that evaluates ignored lines based on a start and end sequence (like multi-line strings or comments) used a wrong condition in the for loop. It used the number of not yet ignored lines instead of all lines, which lead to errors, if a lot of lines were already ignored.

@TwoOfTwelve TwoOfTwelve self-assigned this Nov 21, 2023
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change language PR / Issue deals (partly) with new and/or existing languages for JPlag labels Nov 22, 2023
Copy link
Member

@tsaglam tsaglam left a comment

Choose a reason for hiding this comment

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

Looks good! Just two minor things.

@tsaglam
Copy link
Member

tsaglam commented Nov 27, 2023

@TwoOfTwelve Spotless fails here. Also, could you just add 1-3 sentences regarding the fixes in the PR description?

Copy link

sonarcloud bot commented Nov 30, 2023

[JPlag Plagiarism Detector] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tsaglam tsaglam merged commit 2418f81 into develop Nov 30, 2023
10 checks passed
@tsaglam tsaglam deleted the feature/python-tests branch November 30, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants