1616 GitFullRemoteDict ,
1717 GitProject ,
1818 GitRemote ,
19+ GitStatus ,
1920 convert_pip_url as git_convert_pip_url ,
20- extract_status ,
2121)
2222from libvcs .shortcuts import create_project_from_pip_url
2323
@@ -617,7 +617,7 @@ def test_get_current_remote_name(git_repo: GitProject):
617617 ), "Should reflect new upstream branch (different branch)"
618618
619619
620- def test_extract_status ():
620+ def test_GitRemote_from_stdout ():
621621 FIXTURE_A = textwrap .dedent (
622622 """
623623 # branch.oid d4ccd4d6af04b53949f89fbf0cdae13719dc5a08
@@ -628,7 +628,7 @@ def test_extract_status():
628628 assert {
629629 "branch_oid" : "d4ccd4d6af04b53949f89fbf0cdae13719dc5a08" ,
630630 "branch_head" : "fix-current-remote-name" ,
631- }.items () <= extract_status (FIXTURE_A ).to_dict ().items ()
631+ }.items () <= GitStatus . from_stdout (FIXTURE_A ).to_dict ().items ()
632632
633633
634634@pytest .mark .parametrize (
@@ -674,9 +674,9 @@ def test_extract_status():
674674 ],
675675 ],
676676)
677- def test_extract_status_b (fixture : str , expected_result : dict ):
677+ def test_GitRemote__from_stdout_b (fixture : str , expected_result : dict ):
678678 assert (
679- extract_status (textwrap .dedent (fixture )).to_dict ().items ()
679+ GitStatus . from_stdout (textwrap .dedent (fixture )).to_dict ().items ()
680680 >= expected_result .items ()
681681 )
682682
@@ -724,10 +724,10 @@ def test_extract_status_b(fixture: str, expected_result: dict):
724724 ],
725725 ],
726726)
727- def test_extract_status_c (fixture : str , expected_result : dict ):
727+ def test_GitRemote__from_stdout_c (fixture : str , expected_result : dict ):
728728 assert (
729729 expected_result .items ()
730- <= extract_status (textwrap .dedent (fixture )).to_dict ().items ()
730+ <= GitStatus . from_stdout (textwrap .dedent (fixture )).to_dict ().items ()
731731 )
732732
733733
0 commit comments