FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
GitPython/test/test_remote_progress.py at gix-backend · gitpython-developers/GitPython · GitHub
gitpython-developers
GitPython
Repository navigation
Code
Issues
6
(6)
Pull requests
Discussions
Actions
Security and quality
42
(42)
Insights
Expand file tree
Breadcrumbs
GitPython
/
test
/
test_remote_progress.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (12 loc) · 678 Bytes
Breadcrumbs
GitPython
/
test
/
test_remote_progress.py
Copy path
File metadata and controls
19 lines (12 loc) · 678 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This module is part of GitPython and is released under the
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
"""Tests for static characteristics of remote progress helpers."""
from
typing
import
AnyStr
from
git
import
RemoteProgress
def
test_parse_progress_line_override_can_return_non_none
()
->
None
:
"""Subclass overrides may return a value without violating base typing."""
class
ReturningProgress
(
RemoteProgress
):
def
_parse_progress_line
(
self
,
line
:
AnyStr
)
->
str
:
super
().
_parse_progress_line
(
line
)
return
"handled"
assert
ReturningProgress
().
_parse_progress_line
(
"unmatched progress"
)
==
"handled"
Back
|
FazBrowse Home
|
New Git URL