From cf9de51fdf9c02d2546ef127475e9b3c0e9a05c6 Mon Sep 17 00:00:00 2001 From: Caelean Date: Thu, 8 Feb 2024 17:00:08 -0800 Subject: [PATCH] ruff --- tests/test_init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index 28b1c70a..9e30c5a7 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -6,6 +6,7 @@ from modguard.init import init_project from modguard.parsing.boundary import BOUNDARY_PRELUDE + @pytest.fixture(scope="module") def test_root(): # Create a temporary directory to use as the root for testing @@ -14,6 +15,7 @@ def test_root(): # Remove the temporary directory after testing shutil.rmtree(test_root) + def test_init_project_with_valid_root(test_root): # Create some mock files and directories for testing test_dirs = [ @@ -40,4 +42,4 @@ def test_init_project_with_valid_root(test_root): def test_init_project_with_invalid_root(): with pytest.raises(errors.ModguardSetupError): - init_project("nonexistent_directory") \ No newline at end of file + init_project("nonexistent_directory")