testhelpers: class for fixtures involving hg-git GitLab mirroring
The new `GitLabMirrorFixture` will hold the two repositories and the notification interception mechanism. We demonstrate by rewriting only two tests, but the goal is to make all of them just use the new fixtures for better clarity and maintanibility. Another goal is to use this class directly in HGitaly comparison tests with Gitaly (hgitaly#35). The new class is mostly tested indirectly. A minor difference with the previous test is that it actually creates the Git repo (which hg-git would otherwise do anyway). This was felt to be clearer, and tests depending on this won't have to make special cases for when no mirroring actually occurred (can imagine that to happen with tests for error paths).
parent
bee861c7
No related branches found
No related tags found
Showing
- heptapod/testhelpers/gitlab.py 86 additions, 0 deletionsheptapod/testhelpers/gitlab.py
- heptapod/testhelpers/tests/test_gitlab.py 20 additions, 0 deletionsheptapod/testhelpers/tests/test_gitlab.py
- hgext3rd/heptapod/tests/git/test_integration.py 54 additions, 19 deletionshgext3rd/heptapod/tests/git/test_integration.py
heptapod/testhelpers/tests/test_gitlab.py
0 → 100644
Please register or sign in to comment