Skip to content

Conversation

@JohanMabille
Copy link
Member

No description provided.

@JohanMabille JohanMabille added the enhancement New feature or request label Feb 6, 2026
test/test_mv.py Outdated
status_cmd = [git2cpp_path, "status", "--long"]
p_status = subprocess.run(status_cmd, capture_output=True, cwd=xtl_path, text=True)
assert p_status.returncode == 0
assert "renamed:" in p_status.stdout or "renamed_file.txt" in p_status.stdout
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be "and" instead of "or", but it wouldn't pass at the moment with git2cpp as there is an issue with the status (it shows a new file and a deleted file instead of a renamed one). So I would change this test and write a TODO to change it after the status command is updated.

# Check git status
status_cmd = [git2cpp_path, "status", "--long"]
p_status = subprocess.run(status_cmd, capture_output=True, cwd=xtl_path, text=True)
assert p_status.returncode == 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't check anything in the output here.

assert (xtl_path / "moved.txt").exists()


def test_mv_nogit(git2cpp_path, tmp_path):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at Ian's last merged PR, there is something to add in this one to test in wasm.

@JohanMabille JohanMabille merged commit 42d1072 into QuantStack:main Feb 6, 2026
2 checks passed
@JohanMabille JohanMabille deleted the mv_command branch February 6, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants