Skip to content

Commit b6cc295

Browse files
committed
Harden tests
1 parent 864eafc commit b6cc295

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_svn_vcs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def test_export_with_revision_passes_correct_args():
1111
"""export() must produce the exact expected SVN command."""
1212
with patch("dfetch.vcs.svn.run_on_cmdline") as mock_run:
1313
SvnRepo.export("svn://example.com/repo", rev="12345", dst="/tmp/out")
14+
mock_run.assert_called_once()
1415
assert mock_run.call_args[0][1] == [
1516
"svn",
1617
"export",
@@ -27,6 +28,7 @@ def test_export_without_revision_omits_revision_args():
2728
"""export() with no revision must produce the exact expected SVN command."""
2829
with patch("dfetch.vcs.svn.run_on_cmdline") as mock_run:
2930
SvnRepo.export("svn://example.com/repo", dst="/tmp/out")
31+
mock_run.assert_called_once()
3032
assert mock_run.call_args[0][1] == [
3133
"svn",
3234
"export",

0 commit comments

Comments
 (0)