Skip to content

Commit 2a53850

Browse files
Test use_ci_bitbucket(how=True)
1 parent 1e7f797 commit 2a53850

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/usethis/_core/test_core_ci.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,3 +506,17 @@ def test_message(
506506
# Assert
507507
out, _ = capfd.readouterr()
508508
assert out == "✔ Removing 'bitbucket-pipelines.yml'.\n"
509+
510+
class TestHow:
511+
def test_message(self, uv_init_dir: Path, capfd: pytest.CaptureFixture[str]):
512+
# Act
513+
with change_cwd(uv_init_dir), files_manager():
514+
use_ci_bitbucket(how=True)
515+
516+
# Assert
517+
out, err = capfd.readouterr()
518+
assert not err
519+
assert out == (
520+
"ℹ Consider `usethis tool pytest` to test your code for the pipeline.\n" # noqa: RUF001
521+
"☐ Run your pipeline via the Bitbucket website.\n"
522+
)

0 commit comments

Comments
 (0)