| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9d17172 commit fabd548
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,7 +112,10 @@ def test_append_reload_and_write(self): | |||
| 112 | 112 | self.assertEqual(history.entries, ['#1', '#2', '#3', '#4']) | |
| 113 | 113 | ||
| 114 | 114 | def test_save(self): | |
| 115 | - history = History(['#1', '#2', '#3', '#4']) | ||
| 115 | + history = History() | ||
| 116 | + history.entries = [] | ||
| 117 | + for line in ['#1', '#2', '#3', '#4']: | ||
| 118 | + history.append_to(history.entries, line) | ||
| 116 | 119 | ||
| 117 | 120 | # save only last 2 lines | |
| 118 | 121 | history.save(self.filename, self.encoding, lines=2) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments