Skip to content

Fix unit tests#8

Open
deadpyxel wants to merge 11 commits intomasterfrom
fix-unit-tests
Open

Fix unit tests#8
deadpyxel wants to merge 11 commits intomasterfrom
fix-unit-tests

Conversation

@deadpyxel
Copy link
Copy Markdown
Owner

This PR is intended to fix the current failing tests, and overall get the CI/CD pipeline working properly.

This commit fix 2 failing tests that expect an exception to be raise if non integer values are used
as attributes for the GRayPixel constructor. The expected behaviour is to only be able to create new
pixels using the proper integer type.
@deadpyxel deadpyxel added the enhancement New feature or request label Apr 30, 2021
@deadpyxel deadpyxel self-assigned this Apr 30, 2021
both operations should return the expected result for the given example. Problem was the position of
the intenral value matrix. This change also removes some deprecated/unused or imcomplete tests.
Just updated the test_lighten_operation_returns_correct_result parameters to maintain consistency
with the darken "mirror" test.
this change was missing in a previous commit. The internal matrix refers a desired x,y pixel as a
y,x coordinate in the value matrix. This change fixes the previous behaviour(using the x, y
coordinate) to correctly fetch data in a given position.
The CodeClimate reporter need either to generate the report or to have a location set to fetch the
desired report. This change updates the script to generate the coverage.py report as a XML and pass
that location to the CC reporter.
The main.py entrypoing had some flake8 warnings. That said, it should be deprecated soon.

BREAKING CHANGE: main.py will no longer be update and soon to be removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant