Reformat with black
This commit is contained in:
@@ -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,
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user