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

Many improvements #3

Merged
merged 11 commits into from
Apr 22, 2024
Merged

Many improvements #3

merged 11 commits into from
Apr 22, 2024

Conversation

Matzey
Copy link
Contributor

@Matzey Matzey commented Apr 21, 2024

First of all I changed UI elements, that were basically a decision of between two elements, that were of Type QLineEdit to QComboBox, giving the User a DropDown Menu. I also added (s)css for those. (Don't forget to recompile with sass).

I also changed (hopefully more or less correct and understandable) the UnitTests to ones that have mocked values, so that the GitHub Actions don't need environment variables anymore. For this I also needed to change some underlying functions, in a way that made the tests easier (or even possible in the first place) without sacrificing the functionality in any way. The UnitTests also required a new library (which can be found in the requirement.txt).

Matzey added 5 commits April 19, 2024 20:47
I switched two QLineEdit Field with QComboBox Fields, since those QLineEdit had the user type in a decision between two values.
@K0ntr4
Copy link
Owner

K0ntr4 commented Apr 21, 2024

Let's keep the input elements as QLineEdit to allow users to input custom text. The choices are more or less just recommendations for better image generation results.

Copy link
Owner

@K0ntr4 K0ntr4 left a comment

Choose a reason for hiding this comment

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

See comment

@Matzey Matzey requested a review from K0ntr4 April 21, 2024 21:09
Copy link
Owner

@K0ntr4 K0ntr4 left a comment

Choose a reason for hiding this comment

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

Fix:
src/image/game_info.py:89:5 E303 too many blank lines (2) [pycodestyle]
src/tests/test_character_info.py:24:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_character_info.py:31:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_character_info.py:55:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_game_info.py:18:39 W291 trailing whitespace [pycodestyle]
src/tests/test_game_info.py:34:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_game_info.py:51:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_game_info.py:70:1 W293 blank line contains whitespace [pycodestyle]
src/tests/test_game_info.py:87:1 W293 blank line contains whitespace [pycodestyle]

@Matzey Matzey requested a review from K0ntr4 April 22, 2024 08:35
src/tests/test_game_info.py Show resolved Hide resolved
@Matzey Matzey requested a review from K0ntr4 April 22, 2024 08:57
K0ntr4

This comment was marked as outdated.

@K0ntr4 K0ntr4 self-requested a review April 22, 2024 09:20
Matzey and others added 3 commits April 22, 2024 11:43
improved reusability for mocking for get_game_keywords
improved coding style
@K0ntr4 K0ntr4 merged commit 5acf07a into K0ntr4:main Apr 22, 2024
2 checks passed
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