Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_landings: increase git landing coverage (bug 1934485) #190

Merged
merged 18 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/lando/api/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@
from lando.main.models import SCM_LEVEL_1, SCM_LEVEL_3, Profile, Repo
from lando.main.scm import SCM_TYPE_HG
from lando.main.support import LegacyAPIException
from lando.main.tests.conftest import git_repo, git_repo_seed
from lando.utils.phabricator import PhabricatorClient

# We need some local usage of those imported fixtures to satisfy the linters.
# This is it.
__all__ = ["git_repo", "git_repo_seed"]

PATCH_NORMAL_1 = r"""
# HG changeset patch
# User Test User <[email protected]>
Expand All @@ -45,7 +50,7 @@
@@ -1,1 +1,2 @@
TEST
+adding another line
""".strip()
""".lstrip()

PATCH_NORMAL_2 = r"""
# HG changeset patch
Expand All @@ -61,7 +66,7 @@
TEST
adding another line
+adding one more line
""".strip()
""".lstrip()

PATCH_NORMAL_3 = r"""
# HG changeset patch
Expand All @@ -82,7 +87,7 @@
+++ b/blah.txt
@@ -0,0 +1,1 @@
+TEST
""".strip()
""".lstrip()


@pytest.fixture
Expand Down
Loading
Loading