Skip to content

Commit 51b77e8

Browse files
committed
tests: update tests for the trimmed-down model
Rework the tests to account for the refactored staging actions. Signed-off-by: David Aguilar <[email protected]>
1 parent 7db77f9 commit 51b77e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/browse_model_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def test_stage_paths_untracked(self):
1919
"""Test stage_paths() with an untracked file."""
2020
core.makedirs('foo/bar')
2121
self.touch('foo/bar/baz')
22-
self.model.stage_paths(['foo'])
22+
gitcmds.add(['foo'])
23+
self.model.update_file_status()
2324

2425
self.assertTrue('foo/bar/baz' in self.model.staged)
2526
self.assertTrue('foo/bar/baz' not in self.model.modified)

0 commit comments

Comments
 (0)