22
33from usethis ._integrations .ci .bitbucket .anchor import ScriptItemAnchor
44from usethis ._integrations .ci .bitbucket .config import (
5- add_bitbucket_pipeline_config ,
6- remove_bitbucket_pipeline_config ,
5+ add_bitbucket_pipelines_config ,
6+ remove_bitbucket_pipelines_config ,
77)
88from usethis ._integrations .ci .bitbucket .schema import Model , Script
99from usethis ._integrations .ci .bitbucket .steps import (
1818class TestAddBitbucketPipelineConfig :
1919 def test_blank_slate (self , uv_init_dir : Path ):
2020 with change_cwd (uv_init_dir ), PyprojectTOMLManager ():
21- add_bitbucket_pipeline_config ()
21+ add_bitbucket_pipelines_config ()
2222
2323 assert (uv_init_dir / "bitbucket-pipelines.yml" ).exists ()
2424 content = (uv_init_dir / "bitbucket-pipelines.yml" ).read_text ()
@@ -50,7 +50,7 @@ def test_existing_file(self, tmp_path: Path):
5050 (tmp_path / "bitbucket-pipelines.yml" ).write_text ("existing content" )
5151
5252 with change_cwd (tmp_path ):
53- add_bitbucket_pipeline_config ()
53+ add_bitbucket_pipelines_config ()
5454
5555 assert (tmp_path / "bitbucket-pipelines.yml" ).exists ()
5656 content = (tmp_path / "bitbucket-pipelines.yml" ).read_text ()
@@ -59,7 +59,7 @@ def test_existing_file(self, tmp_path: Path):
5959 def test_satisfies_schema (self , uv_init_dir : Path ):
6060 # Act
6161 with change_cwd (uv_init_dir ), PyprojectTOMLManager ():
62- add_bitbucket_pipeline_config ()
62+ add_bitbucket_pipelines_config ()
6363 add_bitbucket_step_in_default (
6464 Step (
6565 name = "Example step" ,
@@ -77,14 +77,14 @@ def test_satisfies_schema(self, uv_init_dir: Path):
7777class TestRemoveBitbucketPipelineConfig :
7878 def test_blank_slate (self , tmp_path : Path ):
7979 with change_cwd (tmp_path ):
80- remove_bitbucket_pipeline_config ()
80+ remove_bitbucket_pipelines_config ()
8181
8282 assert not (tmp_path / "bitbucket-pipelines.yml" ).exists ()
8383
8484 def test_existing_file (self , tmp_path : Path ):
8585 (tmp_path / "bitbucket-pipelines.yml" ).touch ()
8686
8787 with change_cwd (tmp_path ):
88- remove_bitbucket_pipeline_config ()
88+ remove_bitbucket_pipelines_config ()
8989
9090 assert not (tmp_path / "bitbucket-pipelines.yml" ).exists ()
0 commit comments