Skip to content

Fundamental test coverage of userdb module reusing existing structure.#370

Merged
jonasbardino merged 6 commits intonextfrom
add/mig-shared-userdb-unit-tests
Jan 29, 2026
Merged

Fundamental test coverage of userdb module reusing existing structure.#370
jonasbardino merged 6 commits intonextfrom
add/mig-shared-userdb-unit-tests

Conversation

@jonasbardino
Copy link
Copy Markdown
Contributor

@jonasbardino jonasbardino commented Oct 21, 2025

Fundamental test coverage of userdb module reusing existing structure.

Some tests are disabled on purpose because changes are needed in the tested module. Marked as follow-up.

@jonasbardino jonasbardino self-assigned this Oct 21, 2025
@jonasbardino jonasbardino added the test-only Improvements or additions solely for better test coverage - without functionality changes label Oct 21, 2025
@jonasbardino jonasbardino added the follow-up pending Pending tasks to follow-up on after close label Oct 29, 2025
@jonasbardino jonasbardino marked this pull request as ready for review October 29, 2025 11:23
@jonasbardino jonasbardino requested a review from a team October 29, 2025 11:23
@jonasbardino jonasbardino force-pushed the add/mig-shared-userdb-unit-tests branch from dfca598 to a170511 Compare November 18, 2025 18:23
@jonasbardino jonasbardino force-pushed the add/mig-shared-userdb-unit-tests branch 2 times, most recently from 51a7e58 to 44b7f35 Compare December 17, 2025 17:45
Comment thread tests/test_mig_shared_userdb.py Outdated
Comment thread tests/test_mig_shared_userdb.py Outdated
Comment thread tests/test_mig_shared_userdb.py
Comment thread tests/test_mig_shared_userdb.py Outdated
Comment thread tests/test_mig_shared_userdb.py Outdated
Comment thread tests/test_mig_shared_userdb.py Outdated
Copy link
Copy Markdown
Contributor

@albu-diku albu-diku left a comment

Choose a reason for hiding this comment

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

Found some things in a first pass that I believe need to be addressed.

@jonasbardino jonasbardino force-pushed the add/mig-shared-userdb-unit-tests branch 2 times, most recently from 73b90ab to 8b858c7 Compare January 21, 2026 13:07
@jonasbardino
Copy link
Copy Markdown
Contributor Author

Found some things in a first pass that I believe need to be addressed.

Thanks for reviewing. I've made another pass to address your feedback so I'll request another review.

@jonasbardino jonasbardino force-pushed the add/mig-shared-userdb-unit-tests branch 3 times, most recently from 31d5f20 to f057cf5 Compare January 28, 2026 12:30
Comment thread tests/test_mig_shared_userdb.py Outdated
Copy link
Copy Markdown
Contributor

@albu-diku albu-diku left a comment

Choose a reason for hiding this comment

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

I've left a comment about the naming of one of these tests, I tihnk it would be a small change that would benefit the reader. Bu it's not enough to block what's here, hence adding my approval.

 * remove excess user db load in save test
 * rename pickle test to explain abi check and split into load and save test
 * fork a `_generate_sample_db` helper from `_create_sample_db` for abi test
 * clarify how thread-safety test emulates concurrent multi-threaded access
… results

indirectly with API calls to direct checking e.g. using pickle load and dump.
Split joint testing of several load scenarios into individual tests to ease
regression tracking. Add a save+load cycle integration test instead. Add save
empty db test.
@jonasbardino jonasbardino force-pushed the add/mig-shared-userdb-unit-tests branch from f057cf5 to 46daca1 Compare January 29, 2026 11:14
@jonasbardino jonasbardino merged commit 5705f36 into next Jan 29, 2026
7 checks passed
@jonasbardino jonasbardino deleted the add/mig-shared-userdb-unit-tests branch January 29, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

follow-up pending Pending tasks to follow-up on after close 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