feat: X-Host-Only
This commit is contained in:
@@ -82,6 +82,21 @@ class TestDataDir(BaseTestCase):
|
||||
assert not (self.tmp_path / "test_1").exists()
|
||||
assert not (self.tmp_path / "test_1" / ".value").exists()
|
||||
|
||||
def test_remove_file_do_nothing(self) -> None:
|
||||
self.__create_path("test_1")
|
||||
self.data_dir.remove_file("test_1", ".value")
|
||||
assert not (self.tmp_path / "test_1" / ".value").exists()
|
||||
|
||||
def test_remove_file_ok(self) -> None:
|
||||
self.__create_path("test_1", {".value": "test_value\nother_line"})
|
||||
self.data_dir.remove_file("test_1", ".value")
|
||||
assert not (self.tmp_path / "test_1" / ".value").exists()
|
||||
|
||||
def test_remove_file_invalid_path(self) -> None:
|
||||
self.data_dir.remove_file("test_1", ".value")
|
||||
assert not (self.tmp_path / "test_1").exists()
|
||||
assert not (self.tmp_path / "test_1" / ".value").exists()
|
||||
|
||||
def test_remove(self) -> None:
|
||||
self.__create_path("test_1")
|
||||
self.data_dir.remove("test_1")
|
||||
|
||||
Reference in New Issue
Block a user