chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.skip_debug()
|
||||
def test_add_stages_files(git_sandbox, git_repo):
|
||||
git_sandbox.files.write(f"{git_repo}/README.md", "hello\n")
|
||||
|
||||
git_sandbox.git.add(git_repo, all=True)
|
||||
|
||||
status = git_sandbox.git.status(git_repo)
|
||||
entry = next(
|
||||
(item for item in status.file_status if item.name == "README.md"), None
|
||||
)
|
||||
assert entry is not None
|
||||
assert entry.status == "added"
|
||||
assert entry.staged is True
|
||||
Reference in New Issue
Block a user