Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit af40caf

Browse files
Add functional tests to 'from valid branch' test
1 parent 891bd03 commit af40caf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_adopt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def test_new_module_merge_from_valid_branch(tmp_path: Path):
103103
"--from-branch=main",
104104
str(module),
105105
)
106-
assert check_output("git", "branch", cwd=module).strip() == "* main"
106+
# Test basic functionality
107+
assert (module / "src" / "my_module").is_dir()
108+
check_output("python", "-m", "venv", "venv", cwd=module)
109+
check_output("venv/bin/pip", "install", ".[dev]", cwd=module)
107110

108111

109112
def test_new_module_merge_from_invalid_branch(tmp_path: Path):

0 commit comments

Comments
 (0)