mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-21 09:36:31 +00:00
use more succinct name for arg
This commit is contained in:
1 parent
aec3738838
commit
9c1b8b2579
2 files changed
+7
-17
No files matched your search
@@ -1268,16 +1268,6 @@ class TestFlushDnsCache(BaseStdout):
|
||||
]:
|
||||
self.assertIn(expected, output)
|
||||
|
||||
|
||||
def mock_path_join_robust(*args):
|
||||
# We want to hard-code the backup hosts filename
|
||||
# instead of parametrizing based on current time.
|
||||
if len(args) == 2 and args[1].startswith("hosts-"):
|
||||
return os.path.join(args[0], "hosts-new")
|
||||
else:
|
||||
return os.path.join(*args)
|
||||
|
||||
|
||||
class TestRemoveOldHostsFile(BaseMockDir):
|
||||
def setUp(self):
|
||||
super(TestRemoveOldHostsFile, self).setUp()
|
||||
|
||||
Reference in new issue
Block a user