Skip to content

Fix output alignment 35#113

Open
mariam851 wants to merge 3 commits intorasbt:masterfrom
mariam851:fix-output-alignment-35
Open

Fix output alignment 35#113
mariam851 wants to merge 3 commits intorasbt:masterfrom
mariam851:fix-output-alignment-35

Conversation

@mariam851
Copy link
Contributor

Hi @rasbt,

This PR addresses the formatting issues mentioned in #35. The goal was to make the output cleaner and more consistent across different environments (Jupyter, Terminal, etc.) by removing unnecessary colons and aligning the values.

Changes Implemented:

Output Formatting: Modified _generate_formatted_text to remove colons between keys and values.

Alignment: Updated the layout to ensure a clean, one-space separation between package names and versions, matching the requested format: package 1.0.0.

Test Suite Refactoring: Updated watermark/tests/test_watermark.py to be more robust. The previous tests relied on splitting by :, which caused failures after the formatting change. The new tests now use membership validation (assert any(i in line...)), making the test suite more resilient to future UI changes.

Screenshot (20)

@mariam851 mariam851 force-pushed the fix-output-alignment-35 branch from 5170cc4 to fd68243 Compare December 22, 2025 06:08
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.

1 participant