Skip to content

Commit 03ce027

Browse files
committed
cmd/git(docs[GitTagCmd.run]): use ellipsis instead of 'in' check
why: Cleaner doctest using built-in ELLIPSIS matching what: - Replace 'tag' in result pattern with '...tag...' ellipsis
1 parent 74ceae9 commit 03ce027

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/libvcs/cmd/git.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5885,12 +5885,11 @@ def run(
58855885
... name='test-tag', message='Test tag'
58865886
... )
58875887
''
5888-
>>> result = GitTagCmd(
5888+
>>> GitTagCmd(
58895889
... path=example_git_repo.path,
58905890
... tag_name='test-tag',
58915891
... ).run()
5892-
>>> 'test-tag' in result
5893-
True
5892+
'...test-tag...'
58945893
"""
58955894
local_flags = local_flags if isinstance(local_flags, list) else []
58965895
if command is not None:

0 commit comments

Comments
 (0)