Skip to content

Fixes test modules which inappropriately set masks in gramps.gen.config.config to old format "I%04d", "F%04d" for all unit tests - #2478

Open
petr-fedorov wants to merge 8 commits into
gramps-project:maintenance/gramps61from
petr-fedorov:unittests
Open

Fixes test modules which inappropriately set masks in gramps.gen.config.config to old format "I%04d", "F%04d" for all unit tests#2478
petr-fedorov wants to merge 8 commits into
gramps-project:maintenance/gramps61from
petr-fedorov:unittests

Conversation

@petr-fedorov

Copy link
Copy Markdown
Contributor

Each of gramps/plugins/test/exports_test.py and gramps/plugins/test/reports_test.py is now saves state of gramps.gen.config.config singletone object in setUpMoudle fixture and restores it in tearDownModule module fixture.

Also fixes unit tests which fails/errors due to new default format mask "I%05d", "F%05d" etc.

Please see this discussion for additional details

@petr-fedorov
petr-fedorov requested a review from a team July 20, 2026 14:09
@petr-fedorov
petr-fedorov marked this pull request as draft July 22, 2026 14:00
@petr-fedorov
petr-fedorov marked this pull request as ready for review July 22, 2026 17:38
@hgohel hgohel added Status: New A new pull request that is awaiting developer comments before review. Type: Unit Test labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: New A new pull request that is awaiting developer comments before review. Type: Unit Test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants