Skip to content

Commit 646f48d

Browse files
committed
[tests] Enhance some tests for test_distribution
Verifying the number of calls we made to some functions: - test_folder_exist - test_delete
1 parent 6ce30b9 commit 646f48d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_distribution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_folder_exist(self, mock_exists):
7474
Bootstrap().get_bootstrap("sdl2", self.ctx)
7575
)
7676
self.ctx.bootstrap.distribution.folder_exists()
77-
mock_exists.assert_called_with(
77+
mock_exists.assert_called_once_with(
7878
self.ctx.bootstrap.distribution.dist_dir
7979
)
8080

@@ -85,7 +85,7 @@ def test_delete(self, mock_rmtree):
8585
Bootstrap().get_bootstrap("sdl2", self.ctx)
8686
)
8787
self.ctx.bootstrap.distribution.delete()
88-
mock_rmtree.assert_called_with(
88+
mock_rmtree.assert_called_once_with(
8989
self.ctx.bootstrap.distribution.dist_dir
9090
)
9191

0 commit comments

Comments
 (0)