Skip to content

Commit

Permalink
format: conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MyuddinKhatri committed Jun 14, 2024
1 parent 1eb08c2 commit f4ddbb1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions inventory_tools/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from pathlib import Path
from unittest.mock import MagicMock
import json

import frappe
import pytest
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f4ddbb1

Please sign in to comment.