diff --git a/inventory_tools/tests/conftest.py b/inventory_tools/tests/conftest.py index dd53a23..ac79821 100644 --- a/inventory_tools/tests/conftest.py +++ b/inventory_tools/tests/conftest.py @@ -1,6 +1,6 @@ +import json from pathlib import Path from unittest.mock import MagicMock -import json import frappe import pytest @@ -34,9 +34,7 @@ def db_instance(): currentsite = "test_site" sites = Path(get_bench_path()) / "sites" if (sites / "common_site_config.json").is_file(): - currentsite = json.loads((sites / "common_site_config.json").read_text()).get( - "default_site" - ) + currentsite = json.loads((sites / "common_site_config.json").read_text()).get("default_site") frappe.init(site=currentsite, sites_path=sites) frappe.connect()