Skip to content

Silence noise when running the test suite.#505

Merged
jonasbardino merged 4 commits intonextfrom
test/silence-noise-from-legacy-tests
Apr 13, 2026
Merged

Silence noise when running the test suite.#505
jonasbardino merged 4 commits intonextfrom
test/silence-noise-from-legacy-tests

Conversation

@albu-diku
Copy link
Copy Markdown
Contributor

When the testcore boilerplate was copied for other legacy tests the main methods were not made to fit to the same extent, particularly around the print override. Meanwhile, we now use only PY3 which allows shadowing the print function. So, use this to now stop filling the console with arbitrary messags while the tests are run. While here make things consistent - always pass in a test configuration, use the passed in value and align naming/messages.

@albu-diku albu-diku force-pushed the test/silence-noise-from-legacy-tests branch 2 times, most recently from 2f0ad61 to 7e1cdcc Compare April 5, 2026 16:30
Comment thread mig/shared/pwcrypto.py Outdated
Comment thread mig/lib/events.py Outdated
Comment thread mig/shared/userio.py Outdated
Comment thread mig/unittest/testcore.py Outdated
Comment thread tests/test_mig_shared_base.py
Comment thread tests/test_mig_shared_pwcrypto.py
Comment thread tests/test_mig_shared_userio.py Outdated
Comment thread tests/test_mig_shared_vgrid.py Outdated
Copy link
Copy Markdown
Contributor

@jonasbardino jonasbardino 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, thanks 👍
Minor improvement suggestions in comments.

@jonasbardino jonasbardino added the test-only Improvements or additions solely for better test coverage - without functionality changes label Apr 7, 2026
@albu-diku
Copy link
Copy Markdown
Contributor Author

@jonasbardino will do the pass on renaming the methods themselves - thanks for the look :)

When the testcore boilerplate was copied for other legacy tests the main
methods were not made to fit to the same extent, particularly around the
print override. Meanwhile, we now use only PY3 which allows shadowing the
print function. So, use this to avoid filling the console with arbitrary
messages while the tests are run.

While here make things consistent - always pass in a test configuration,
use the passed in value and try to consistently use legacy main naming.
@albu-diku albu-diku force-pushed the test/silence-noise-from-legacy-tests branch from f713bca to 3a824bf Compare April 11, 2026 12:57
Added the missing class docstring.

Signed-off-by: Jonas Bardino <bardino@science.ku.dk>
Added the missing class docstring.

Signed-off-by: Jonas Bardino <bardino@science.ku.dk>
Adjust docstring to generic form.

Signed-off-by: Jonas Bardino <bardino@science.ku.dk>
Copy link
Copy Markdown
Contributor

@jonasbardino jonasbardino left a comment

Choose a reason for hiding this comment

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

Thanks. I've added some missing class docstring and will proceed with merge.

On a side note please look into signing your commits with an ssh or gpg key as required now. You can see them show up with a Verified marker here once it works.

@jonasbardino jonasbardino merged commit 4e99185 into next Apr 13, 2026
11 checks passed
@jonasbardino jonasbardino deleted the test/silence-noise-from-legacy-tests branch April 13, 2026 09:02
jonasbardino added a commit that referenced this pull request Apr 13, 2026
jonasbardino added a commit that referenced this pull request Apr 13, 2026
jonasbardino added a commit that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-only Improvements or additions solely for better test coverage - without functionality changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants