# Copyright (c) 2020, Jingrow and Contributors
# See license.txt
from __future__ import annotations

from typing import TYPE_CHECKING

import jingrow
from jingrow.tests.utils import FrappeTestCase

from jcloude.utils import get_current_team

if TYPE_CHECKING:
	from jcloude.jcloude.doctype.site_activity.site_activity import SiteActivity


def create_test_site_activity(site: str, action: str) -> SiteActivity:
	return jingrow.get_pg(
		{  # type: ignore
			"doctype": "Site Activity",
			"site": site,
			"action": action,
			"team": get_current_team(),
		}
	).insert()


class TestSiteActivity(FrappeTestCase):
	pass
