Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix flake
  • Loading branch information
Byron committed Apr 22, 2021
commit 6d0bd1d7f8707c29acc525c2ee5df83e9faa9c42
4 changes: 3 additions & 1 deletion test/test_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
with_rw_directory,
)


class TestClone(TestBase):
@with_rw_directory
def test_checkout_in_non_empty_dir(self, rw_dir):
non_empty_dir = Path(rw_dir)
garbage_file = non_empty_dir / 'not-empty'
garbage_file.write_text('Garbage!')

# Verify that cloning into the non-empty dir fails while complaining about the target directory not being empty/non-existent
# Verify that cloning into the non-empty dir fails while complaining about
# the target directory not being empty/non-existent
try:
self.rorepo.clone(non_empty_dir)
except git.GitCommandError as exc:
Expand Down