Closed kunaljubce closed 3 months ago
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of quinn.
[X] I have confirmed this bug exists on the main branch of quinn.
This is not a breaking issue, so there's nothing to be reproduced. This issue is an attempt to clean up apparently dead code.
In the https://github.com/MrPowers/quinn/blob/main/tests/test_transformations.py file, we see a lot of redundant nested column definitions that seem to serve no purpose except for code redundancy.
E.g. https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L20 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L43 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L68 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L100
We can remove all these function definitions and have them in the body of the original function itself.
Closing this as this is a non-issue. This kind of declarative syntax is called pytest describe syntax - https://github.com/pytest-dev/pytest-describe
pytest describe
Quinn version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of quinn.
[X] I have confirmed this bug exists on the main branch of quinn.
Reproducible Example
Issue Description
In the https://github.com/MrPowers/quinn/blob/main/tests/test_transformations.py file, we see a lot of redundant nested column definitions that seem to serve no purpose except for code redundancy.
E.g. https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L20 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L43 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L68 https://github.com/MrPowers/quinn/blob/4157a3c07ed2b7dbb9696678ff87a3273b7dc092/tests/test_transformations.py#L100
Expected Behavior
We can remove all these function definitions and have them in the body of the original function itself.
Installed Versions