Reformat with black

This commit is contained in:
Pim van Pelt
2025-08-03 11:03:38 +02:00
parent 81c7f9c9bd
commit c1d70cd9b6
8 changed files with 239 additions and 209 deletions

View File

@@ -2,8 +2,9 @@
import sys
import os
# Add the src directory to Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
import pytest
from unittest.mock import Mock, MagicMock
@@ -28,7 +29,7 @@ def mock_monitors():
"type": "http",
"url": "https://example.com",
"active": True,
"parent": None
"parent": None,
},
{
"id": 2,
@@ -36,14 +37,14 @@ def mock_monitors():
"type": "http",
"url": "https://test.com",
"active": False,
"parent": None
"parent": None,
},
{
"id": 3,
"name": "Group Monitor",
"type": "group",
"active": True,
"parent": None
"parent": None,
},
{
"id": 4,
@@ -51,8 +52,8 @@ def mock_monitors():
"type": "http",
"url": "https://child.com",
"active": False,
"parent": 3
}
"parent": 3,
},
]
@@ -65,13 +66,13 @@ def mock_maintenances():
"title": "Test Maintenance",
"description": "Test maintenance description",
"strategy": "single",
"active": True
"active": True,
},
{
"id": 2,
"title": "Inactive Maintenance",
"description": "Inactive maintenance description",
"strategy": "single",
"active": False
}
]
"active": False,
},
]