mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-14 22:58:20 +00:00
remove the '-' from mock
This commit is contained in:
1 parent
ef6cff0702
commit
b40aa38ee6
1 file changed
+1
-1
@@ -1376,7 +1376,7 @@ class TestRemoveOldHostsFile(BaseMockDir):
|
||||
contents = f.read()
|
||||
self.assertEqual(contents, "")
|
||||
|
||||
@mock.patch("time.strftime", return_value="-new")
|
||||
@mock.patch("time.strftime", return_value="new")
|
||||
def test_remove_hosts_file_backup(self, _):
|
||||
with open(self.hosts_file, "w") as f:
|
||||
f.write("foo")
|
||||
|
||||
Reference in new issue
Block a user