Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
caelean committed Feb 9, 2024
1 parent 85f1b0b commit cf9de51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = [
Expand All @@ -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")
init_project("nonexistent_directory")

0 comments on commit cf9de51

Please sign in to comment.