update Frappe to Jingrow

This commit is contained in:
jingrow 2025-12-23 23:10:51 +08:00
parent e2c89138d2
commit 38fdb03304
243 changed files with 510 additions and 510 deletions

View File

@ -199,7 +199,7 @@
"Fpww", "Fpww",
"jingrowclient", "jingrowclient",
"jingrowhr", "jingrowhr",
"Frappeio", "Jingrowio",
"jingrowui", "jingrowui",
"fremovexattr", "fremovexattr",
"fsetxattr", "fsetxattr",

View File

@ -2,12 +2,12 @@
# For license information, please see license.txt # For license information, please see license.txt
from unittest.mock import MagicMock from unittest.mock import MagicMock
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from backbone.hypervisor import Hypervisor from backbone.hypervisor import Hypervisor
class TestHypervisor(FrappeTestCase): class TestHypervisor(JingrowTestCase):
def test_preinstall_pass(self): def test_preinstall_pass(self):
shell = MagicMock() shell = MagicMock()
shell.execute.return_value.returncode = 0 shell.execute.return_value.returncode = 0

View File

@ -4,7 +4,7 @@
<!-- logo --> <!-- logo -->
<div <div
class="flex flex-col items-center" class="flex flex-col items-center"
@dblclick="redirectForFrappeioAuth" @dblclick="redirectForJingrowioAuth"
> >
<FCLogo class="inline-block h-12 w-12" /> <FCLogo class="inline-block h-12 w-12" />
</div> </div>
@ -57,7 +57,7 @@ export default {
}, },
}, },
methods: { methods: {
redirectForFrappeioAuth() { redirectForJingrowioAuth() {
window.location = '/f-login'; window.location = '/f-login';
}, },
}, },

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="relative h-full"> <div class="relative h-full">
<div class="relative z-10 mx-auto py-8 sm:w-max sm:py-24"> <div class="relative z-10 mx-auto py-8 sm:w-max sm:py-24">
<div class="flex flex-col px-4" @dblclick="redirectForFrappeioAuth"> <div class="flex flex-col px-4" @dblclick="redirectForJingrowioAuth">
<slot name="logo"> <slot name="logo">
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<FCLogo class="inline-block h-[38px] w-[38px]" /> <FCLogo class="inline-block h-[38px] w-[38px]" />
@ -47,7 +47,7 @@ export default {
} }
}, },
methods: { methods: {
redirectForFrappeioAuth() { redirectForJingrowioAuth() {
window.location = '/f-login'; window.location = '/f-login';
}, },
}, },

View File

@ -4,7 +4,7 @@
<!-- logo --> <!-- logo -->
<div <div
class="flex flex-col items-center" class="flex flex-col items-center"
@dblclick="redirectForFrappeioAuth" @dblclick="redirectForJingrowioAuth"
> >
<img <img
v-if="logo" v-if="logo"
@ -63,7 +63,7 @@ export default {
} }
}, },
methods: { methods: {
redirectForFrappeioAuth() { redirectForJingrowioAuth() {
window.location = '/f-login'; window.location = '/f-login';
}, },
}, },

View File

@ -1,5 +1,5 @@
<template> <template>
<FrappeUIBadge :size="size" :theme="_color"> <JingrowUIBadge :size="size" :theme="_color">
{{ label }} {{ label }}
<template #prefix> <template #prefix>
<slot name="prefix"></slot> <slot name="prefix"></slot>
@ -7,17 +7,17 @@
<template #suffix> <template #suffix>
<slot name="suffix"></slot> <slot name="suffix"></slot>
</template> </template>
</FrappeUIBadge> </JingrowUIBadge>
</template> </template>
<script> <script>
import { Badge as FrappeUIBadge } from 'jingrow-ui'; import { Badge as JingrowUIBadge } from 'jingrow-ui';
export default { export default {
name: 'Badge', name: 'Badge',
props: ['label', 'theme', 'size'], props: ['label', 'theme', 'size'],
components: { components: {
FrappeUIBadge, JingrowUIBadge,
}, },
computed: { computed: {
_color() { _color() {

View File

@ -19,7 +19,7 @@ import outsideClickDirective from './outsideClickDirective';
let components = import.meta.glob('./*.vue', { eager: true }); // To get each component inside this folder let components = import.meta.glob('./*.vue', { eager: true }); // To get each component inside this folder
let globalFrappeUIComponents = { let globalJingrowUIComponents = {
Button, Button,
Avatar, Avatar,
FeatherIcon, FeatherIcon,
@ -46,8 +46,8 @@ export default function registerGlobalComponents(app) {
app.component(name, component.default || component); app.component(name, component.default || component);
} }
for (let key in globalFrappeUIComponents) { for (let key in globalJingrowUIComponents) {
app.component(key, globalFrappeUIComponents[key]); app.component(key, globalJingrowUIComponents[key]);
} }
} }

View File

@ -12,7 +12,7 @@ This documentation is intended to help consultants carry out daily operational t
| Term | Description | | Term | Description |
| --- | --- | | --- | --- |
| FrappeCloud | Platform for hosting customer sites | | JingrowCloud | Platform for hosting customer sites |
| Team | A team represents a group of people. Every account created on Jingrow Cloud belongs to a team. If a user signs up on Jingrow Cloud without an invite, theyll belong to their own team. A Team document has a child table of user emails | | Team | A team represents a group of people. Every account created on Jingrow Cloud belongs to a team. If a user signs up on Jingrow Cloud without an invite, theyll belong to their own team. A Team document has a child table of user emails |
| Desk Page/Page/Pg | Any webpage that starts with *jcloud.jingrow.com/app* in the url, powered by Jingrow Framework, similar to the one you see on framework.jingrow.com. Customers of Jingrow Cloud cannot access these pages | | Desk Page/Page/Pg | Any webpage that starts with *jcloud.jingrow.com/app* in the url, powered by Jingrow Framework, similar to the one you see on framework.jingrow.com. Customers of Jingrow Cloud cannot access these pages |
| Dashboard Page | Any webpage that starts with *jcloud.jingrow.com/dashboard* in the url, powered by Vue js, custom UI for users. Customers of Jingrow Cloud only see these pages. | | Dashboard Page | Any webpage that starts with *jcloud.jingrow.com/dashboard* in the url, powered by Vue js, custom UI for users. Customers of Jingrow Cloud only see these pages. |
@ -121,9 +121,9 @@ In some cases, it may be so that multiple partners are working on features for a
### Central/JERP.com Sites ### Central/JERP.com Sites
* These sites are the ones migrated from central to Frappecloud. * These sites are the ones migrated from central to Jingrowcloud.
* They are all under common team i.e *central@jcloud.jingrow.com* and common plan i.e *Central Site* * They are all under common team i.e *central@jcloud.jingrow.com* and common plan i.e *Central Site*
* Frappecloud pricing doesn't apply to them * Jingrowcloud pricing doesn't apply to them
### Extend trial date of a site ### Extend trial date of a site

View File

@ -50,7 +50,7 @@ Eg: We can mock all Agent Job creation calls by decorating the TestCase class li
```python ```python
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestSite(FrappeTestCase): class TestSite(JingrowTestCase):
``` ```
We use `patch.object` decorator here so that every instance of `AgentJob` We use `patch.object` decorator here so that every instance of `AgentJob`
@ -145,7 +145,7 @@ from unittest.mock import MagicMock, patch
# this will mock all the jingrow.db.commit calls in server.py while in this test suite # this will mock all the jingrow.db.commit calls in server.py while in this test suite
@patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock)
class TestBench(FrappeTestCase): class TestBench(JingrowTestCase):
``` ```
You can also use the patch decorator on test methods too. Eg: You can also use the patch decorator on test methods too. Eg:

View File

@ -214,19 +214,19 @@ def get_default_apps():
def get_app_versions_list(only_jingrow=False): def get_app_versions_list(only_jingrow=False):
AppSource = jingrow.qb.PageType("App Source") AppSource = jingrow.qb.PageType("App Source")
FrappeVersion = jingrow.qb.PageType("Jingrow Version") JingrowVersion = jingrow.qb.PageType("Jingrow Version")
AppSourceVersion = jingrow.qb.PageType("App Source Version") AppSourceVersion = jingrow.qb.PageType("App Source Version")
rows = ( rows = (
jingrow.qb.from_(AppSourceVersion) jingrow.qb.from_(AppSourceVersion)
.left_join(AppSource) .left_join(AppSource)
.on(AppSourceVersion.parent == AppSource.name) .on(AppSourceVersion.parent == AppSource.name)
.left_join(FrappeVersion) .left_join(JingrowVersion)
.on(AppSourceVersion.version == FrappeVersion.name) .on(AppSourceVersion.version == JingrowVersion.name)
.where((AppSource.enabled == 1) & (AppSource.public == 1) & (FrappeVersion.public == 1)) .where((AppSource.enabled == 1) & (AppSource.public == 1) & (JingrowVersion.public == 1))
.select( .select(
FrappeVersion.name.as_("version"), JingrowVersion.name.as_("version"),
FrappeVersion.status, JingrowVersion.status,
FrappeVersion.default, JingrowVersion.default,
AppSource.name.as_("source"), AppSource.name.as_("source"),
AppSource.app, AppSource.app,
AppSource.repository_url, AppSource.repository_url,

View File

@ -8,7 +8,7 @@ import docker
import jingrow import jingrow
import requests import requests
from jingrow.core.utils import find from jingrow.core.utils import find
from jingrow.tests.utils import FrappeTestCase, timeout from jingrow.tests.utils import JingrowTestCase, timeout
from jcloude.api.bench import ( from jcloude.api.bench import (
all, all,
@ -40,7 +40,7 @@ from jcloude.utils.test import foreground_enqueue_pg
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestAPIBench(FrappeTestCase): class TestAPIBench(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
@ -227,7 +227,7 @@ class TestAPIBench(FrappeTestCase):
time.sleep(0.5) time.sleep(0.5)
class TestAPIBenchConfig(FrappeTestCase): class TestAPIBenchConfig(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
@ -553,7 +553,7 @@ class TestAPIBenchConfig(FrappeTestCase):
self.assertEqual(job_data["vcpu"], 2) self.assertEqual(job_data["vcpu"], 2)
class TestAPIBenchList(FrappeTestCase): class TestAPIBenchList(JingrowTestCase):
def setUp(self): def setUp(self):
from jcloude.jcloude.pagetype.jcloude_tag.test_jcloude_tag import create_and_add_test_tag from jcloude.jcloude.pagetype.jcloude_tag.test_jcloude_tag import create_and_add_test_tag

View File

@ -6,7 +6,7 @@ from unittest.mock import Mock, patch
import jingrow import jingrow
import responses import responses
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.api.marketplace import ( from jcloude.api.marketplace import (
add_app, add_app,
@ -77,7 +77,7 @@ PAYLOAD = [
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestAPIMarketplace(FrappeTestCase): class TestAPIMarketplace(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -7,7 +7,7 @@ from unittest.mock import MagicMock, Mock, patch
import jingrow import jingrow
from jingrow.model.naming import make_autoname from jingrow.model.naming import make_autoname
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.api.server import all, change_plan, new from jcloude.api.server import all, change_plan, new
from jcloude.jcloude.pagetype.ansible_play.test_ansible_play import create_test_ansible_play from jcloude.jcloude.pagetype.ansible_play.test_ansible_play import create_test_ansible_play
@ -115,7 +115,7 @@ def successful_wait_for_cloud_init(self: BaseServer):
@patch.object(BaseServer, "update_tls_certificate", new=successful_tls_certificate) @patch.object(BaseServer, "update_tls_certificate", new=successful_tls_certificate)
@patch.object(BaseServer, "update_agent_ansible", new=successful_update_agent_ansible) @patch.object(BaseServer, "update_agent_ansible", new=successful_update_agent_ansible)
@patch.object(Cluster, "check_machine_availability", new=available_check_machine_availability) @patch.object(Cluster, "check_machine_availability", new=available_check_machine_availability)
class TestAPIServer(FrappeTestCase): class TestAPIServer(JingrowTestCase):
@patch.object(Cluster, "provision_on_aws_ec2", new=Mock()) @patch.object(Cluster, "provision_on_aws_ec2", new=Mock())
def setUp(self): def setUp(self):
super().setUp() super().setUp()
@ -291,7 +291,7 @@ class TestAPIServer(FrappeTestCase):
self.assertEqual(db_server.plan, db_plan_2.name) self.assertEqual(db_server.plan, db_plan_2.name)
class TestAPIServerList(FrappeTestCase): class TestAPIServerList(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -6,7 +6,7 @@ from unittest.mock import MagicMock, Mock, call, patch
import jingrow import jingrow
import responses import responses
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.agent import Agent from jcloude.agent import Agent
from jcloude.api.site import all from jcloude.api.site import all
@ -37,7 +37,7 @@ from jcloude.jcloude.pagetype.team.test_team import create_test_jcloude_admin_te
from jcloude.utils.test import foreground_enqueue, foreground_enqueue_pg from jcloude.utils.test import foreground_enqueue, foreground_enqueue_pg
class TestAPISite(FrappeTestCase): class TestAPISite(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
@ -954,7 +954,7 @@ jerp 0.8.3 HEAD
pass pass
class TestAPISiteList(FrappeTestCase): class TestAPISiteList(JingrowTestCase):
def setUp(self): def setUp(self):
from jcloude.jcloude.pagetype.jcloude_tag.test_jcloude_tag import create_and_add_test_tag from jcloude.jcloude.pagetype.jcloude_tag.test_jcloude_tag import create_and_add_test_tag
from jcloude.jcloude.pagetype.site.test_site import create_test_site from jcloude.jcloude.pagetype.site.test_site import create_test_site

View File

@ -281,7 +281,7 @@ def setup_teams():
request = jingrow.get_all( request = jingrow.get_all(
"Account Request", ["*"], {"email": "cloud@jerp.jingrow.com"}, limit=1 "Account Request", ["*"], {"email": "cloud@jerp.jingrow.com"}, limit=1
)[0] )[0]
cloud = Team.create_new(request, "Jingrow", "Cloud", "FrappeCloud@1", "India", False) cloud = Team.create_new(request, "Jingrow", "Cloud", "JingrowCloud@1", "India", False)
signup("aditya@jerp.jingrow.com") signup("aditya@jerp.jingrow.com")
request = jingrow.get_all( request = jingrow.get_all(

View File

@ -5,7 +5,7 @@ class CentralServerNotSet(ValidationError):
pass pass
class FrappeioServerNotSet(ValidationError): class JingrowioServerNotSet(ValidationError):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestReferralBonus(FrappeTestCase): class TestReferralBonus(JingrowTestCase):
pass pass

View File

@ -7,7 +7,7 @@ import typing
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from prometheus_api_client import PrometheusConnect from prometheus_api_client import PrometheusConnect
from jcloude.incident_management.pagetype.incident_investigator.incident_investigator import ( from jcloude.incident_management.pagetype.incident_investigator.incident_investigator import (
@ -195,7 +195,7 @@ def make_custom_query_range_side_effect(
@patch.object(Incident, "identify_problem", Mock()) @patch.object(Incident, "identify_problem", Mock())
@patch.object(Incident, "take_grafana_screenshots", Mock()) @patch.object(Incident, "take_grafana_screenshots", Mock())
@patch.object(VirtualMachine, "reboot_with_serial_console", Mock()) @patch.object(VirtualMachine, "reboot_with_serial_console", Mock())
class TestIncidentInvestigator(FrappeTestCase): class TestIncidentInvestigator(JingrowTestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
cls.database_server = create_test_database_server() cls.database_server = create_test_database_server()

View File

@ -4,7 +4,7 @@ import typing
from unittest.mock import MagicMock, Mock, patch from unittest.mock import MagicMock, Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.app.test_app import create_test_app from jcloude.jcloude.pagetype.app.test_app import create_test_app
from jcloude.jcloude.pagetype.bench.test_bench import create_test_bench from jcloude.jcloude.pagetype.bench.test_bench import create_test_bench
@ -21,7 +21,7 @@ if typing.TYPE_CHECKING:
@patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock)
@patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock)
@patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock)
class TestARMBuildRecord(FrappeTestCase): class TestARMBuildRecord(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestSSHAccessAudit(FrappeTestCase): class IntegrationTestSSHAccessAudit(JingrowTestCase):
""" """
Integration tests for SSHAccessAudit. Integration tests for SSHAccessAudit.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestVirtualDiskResize(FrappeTestCase): class IntegrationTestVirtualDiskResize(JingrowTestCase):
""" """
Integration tests for VirtualDiskResize. Integration tests for VirtualDiskResize.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestVirtualMachineMigration(FrappeTestCase): class TestVirtualMachineMigration(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestVirtualMachineReplacement(FrappeTestCase): class IntegrationTestVirtualMachineReplacement(JingrowTestCase):
""" """
Integration tests for VirtualMachineReplacement. Integration tests for VirtualMachineReplacement.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppUserReview(FrappeTestCase): class TestAppUserReview(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestDeveloperReviewReply(FrappeTestCase): class TestDeveloperReviewReply(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestMarketplaceAppFeedback(FrappeTestCase): class IntegrationTestMarketplaceAppFeedback(JingrowTestCase):
""" """
Integration tests for MarketplaceAppFeedback. Integration tests for MarketplaceAppFeedback.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestMarketplaceAppPayment(FrappeTestCase): class TestMarketplaceAppPayment(JingrowTestCase):
pass pass

View File

@ -2,7 +2,7 @@
# See license.txt # See license.txt
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.app.test_app import create_test_app from jcloude.jcloude.pagetype.app.test_app import create_test_app
from jcloude.jcloude.pagetype.marketplace_app.test_marketplace_app import ( from jcloude.jcloude.pagetype.marketplace_app.test_marketplace_app import (
@ -30,5 +30,5 @@ def create_test_marketplace_app_plan(app: str = "jingrow"):
).insert(ignore_permissions=True) ).insert(ignore_permissions=True)
class TestMarketplaceAppPlan(FrappeTestCase): class TestMarketplaceAppPlan(JingrowTestCase):
pass pass

View File

@ -1,7 +1,7 @@
# Copyright (c) 2021, Jingrow and Contributors # Copyright (c) 2021, Jingrow and Contributors
# See license.txt # See license.txt
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.marketplace.pagetype.marketplace_app_plan.test_marketplace_app_plan import ( from jcloude.marketplace.pagetype.marketplace_app_plan.test_marketplace_app_plan import (
create_test_marketplace_app_plan, create_test_marketplace_app_plan,
@ -35,5 +35,5 @@ def create_test_marketplace_app_subscription(
).insert(ignore_if_duplicate=True) ).insert(ignore_if_duplicate=True)
class TestMarketplaceAppSubscription(FrappeTestCase): class TestMarketplaceAppSubscription(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestMarketplacePromotionalBanner(FrappeTestCase): class TestMarketplacePromotionalBanner(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestMarketplacePublisherProfile(FrappeTestCase): class TestMarketplacePublisherProfile(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestMarketplaceSettings(FrappeTestCase): class TestMarketplaceSettings(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestPartnerApprovalRequest(FrappeTestCase): class TestPartnerApprovalRequest(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestPartnerCertificate(FrappeTestCase): class IntegrationTestPartnerCertificate(JingrowTestCase):
""" """
Integration tests for PartnerCertificate. Integration tests for PartnerCertificate.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestPartnerCertificateRequest(FrappeTestCase): class IntegrationTestPartnerCertificateRequest(JingrowTestCase):
""" """
Integration tests for PartnerCertificateRequest. Integration tests for PartnerCertificateRequest.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestPartnerTier(FrappeTestCase): class TestPartnerTier(JingrowTestCase):
pass pass

View File

@ -76,7 +76,7 @@ echo "0 0,12 * * * root /opt/certbot/bin/python -c 'import random; import time;
Reference: https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal Reference: https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal
#### Add frankfurter to blocked subdomains on FrappeCloud.com #### Add frankfurter to blocked subdomains on JingrowCloud.com
https://jcloud.jingrow.com/app/blocked-domain/frankfurter https://jcloud.jingrow.com/app/blocked-domain/frankfurter
### Done ### Done

View File

@ -6,7 +6,7 @@ from __future__ import annotations
from unittest.mock import patch from unittest.mock import patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.account_request.account_request import AccountRequest from jcloude.jcloude.pagetype.account_request.account_request import AccountRequest
@ -40,7 +40,7 @@ def create_test_account_request(
return account_request return account_request
class TestAccountRequest(FrappeTestCase): class TestAccountRequest(JingrowTestCase):
def test_bare(self): def test_bare(self):
account_request = jingrow.get_pg( account_request = jingrow.get_pg(
{ {

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAddOnSettings(FrappeTestCase): class TestAddOnSettings(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestAddOnStorageLog(FrappeTestCase): class IntegrationTestAddOnStorageLog(JingrowTestCase):
""" """
Integration tests for AddOnStorageLog. Integration tests for AddOnStorageLog.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -11,7 +11,7 @@ from unittest.mock import Mock, patch
import jingrow import jingrow
import responses import responses
from jingrow.model.naming import make_autoname from jingrow.model.naming import make_autoname
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.agent import Agent from jcloude.agent import Agent
from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob, lock_pg_updated_by_job from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob, lock_pg_updated_by_job
@ -206,7 +206,7 @@ def fake_agent_job(
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestAgentJob(FrappeTestCase): class TestAgentJob(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestAgentJobCallback(FrappeTestCase): class IntegrationTestAgentJobCallback(JingrowTestCase):
""" """
Integration tests for AgentJobCallback. Integration tests for AgentJobCallback.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAgentJobStep(FrappeTestCase): class TestAgentJobStep(JingrowTestCase):
pass pass

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAgentJobType(FrappeTestCase): class TestAgentJobType(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAgentRequestFailure(FrappeTestCase): class TestAgentRequestFailure(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestAgentUpdate(FrappeTestCase): class IntegrationTestAgentUpdate(JingrowTestCase):
""" """
Integration tests for AgentUpdate. Integration tests for AgentUpdate.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -6,7 +6,7 @@ import json
import typing import typing
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.prometheus_alert_rule.test_prometheus_alert_rule import ( from jcloude.jcloude.pagetype.prometheus_alert_rule.test_prometheus_alert_rule import (
create_test_prometheus_alert_rule, create_test_prometheus_alert_rule,
@ -89,5 +89,5 @@ def create_test_alertmanager_webhook_log(
).insert() ).insert()
class TestAlertmanagerWebhookLog(FrappeTestCase): class TestAlertmanagerWebhookLog(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAlertmanagerWebhookLogReactionJob(FrappeTestCase): class TestAlertmanagerWebhookLogReactionJob(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAnalyticsServer(FrappeTestCase): class TestAnalyticsServer(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAnsibleConsole(FrappeTestCase): class TestAnsibleConsole(JingrowTestCase):
def test_ansible_console_run(self): def test_ansible_console_run(self):
console = jingrow.get_pg("Ansible Console") console = jingrow.get_pg("Ansible Console")
console.inventory = "localhost," console.inventory = "localhost,"

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAnsibleConsoleLog(FrappeTestCase): class TestAnsibleConsoleLog(JingrowTestCase):
pass pass

View File

@ -6,7 +6,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
if TYPE_CHECKING: if TYPE_CHECKING:
from jingrow.types.DF import Data from jingrow.types.DF import Data
@ -37,5 +37,5 @@ def create_test_ansible_play(
return play return play
class TestAnsiblePlay(FrappeTestCase): class TestAnsiblePlay(JingrowTestCase):
pass pass

View File

@ -3,7 +3,7 @@
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
def create_test_ansible_play_task( def create_test_ansible_play_task(
@ -28,5 +28,5 @@ def create_test_ansible_play_task(
return play return play
class TestAnsibleTask(FrappeTestCase): class TestAnsibleTask(JingrowTestCase):
pass pass

View File

@ -5,7 +5,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.team.test_team import create_test_team from jcloude.jcloude.pagetype.team.test_team import create_test_team
@ -17,7 +17,7 @@ def create_test_app(name: str = "jingrow", title: str = "Jingrow Framework") ->
return jingrow.get_pg({"pagetype": "App", "name": name, "title": title}).insert(ignore_if_duplicate=True) return jingrow.get_pg({"pagetype": "App", "name": name, "title": title}).insert(ignore_if_duplicate=True)
class TestApp(FrappeTestCase): class TestApp(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppPatch(FrappeTestCase): class TestAppPatch(JingrowTestCase):
pass pass

View File

@ -6,7 +6,7 @@ from __future__ import annotations
import typing import typing
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from jcloude.jcloude.pagetype.app_release.app_release import AppRelease from jcloude.jcloude.pagetype.app_release.app_release import AppRelease
@ -32,5 +32,5 @@ def create_test_app_release(app_source: AppSource, hash: str | None = None) -> "
return app_release return app_release
class TestAppRelease(FrappeTestCase): class TestAppRelease(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppReleaseApprovalRequest(FrappeTestCase): class TestAppReleaseApprovalRequest(JingrowTestCase):
pass pass

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppReleaseDifference(FrappeTestCase): class TestAppReleaseDifference(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppRename(FrappeTestCase): class TestAppRename(JingrowTestCase):
pass pass

View File

@ -6,7 +6,7 @@ import typing
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.app_release.test_app_release import create_test_app_release from jcloude.jcloude.pagetype.app_release.test_app_release import create_test_app_release
from jcloude.jcloude.pagetype.app_source.app_source import AppSource from jcloude.jcloude.pagetype.app_source.app_source import AppSource
@ -36,7 +36,7 @@ def create_test_app_source(
return app.add_source(version, repository_url, branch, team) return app.add_source(version, repository_url, branch, team)
class TestAppSource(FrappeTestCase): class TestAppSource(JingrowTestCase):
def create_app(self, name: str, title: str): def create_app(self, name: str, title: str):
app: App = jingrow.get_pg({"pagetype": "App", "name": name, "title": title}) app: App = jingrow.get_pg({"pagetype": "App", "name": name, "title": title})
app.insert(ignore_if_duplicate=True) app.insert(ignore_if_duplicate=True)

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAppTag(FrappeTestCase): class TestAppTag(JingrowTestCase):
pass pass

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAuditLog(FrappeTestCase): class TestAuditLog(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestAWSSavingsPlanRecommendation(FrappeTestCase): class TestAWSSavingsPlanRecommendation(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBackupBucket(FrappeTestCase): class TestBackupBucket(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBackupRestorationTest(FrappeTestCase): class TestBackupRestorationTest(JingrowTestCase):
pass pass

View File

@ -3,12 +3,12 @@
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.team.test_team import create_test_team from jcloude.jcloude.pagetype.team.test_team import create_test_team
class TestBalanceTransaction(FrappeTestCase): class TestBalanceTransaction(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()

View File

@ -9,7 +9,7 @@ from urllib.parse import urlparse
import jingrow import jingrow
import responses import responses
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.agent import Agent from jcloude.agent import Agent
from jcloude.exceptions import ArchiveBenchError from jcloude.exceptions import ArchiveBenchError
@ -54,7 +54,7 @@ if TYPE_CHECKING:
@patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock)
@patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock)
@patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock)
class TestStagingSite(FrappeTestCase): class TestStagingSite(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()
@ -75,7 +75,7 @@ class TestStagingSite(FrappeTestCase):
@patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock)
@patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock)
@patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock)
class TestBench(FrappeTestCase): class TestBench(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()
@ -391,7 +391,7 @@ class TestBench(FrappeTestCase):
@patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.bench.bench.jingrow.db.commit", new=MagicMock)
@patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock) @patch("jcloude.jcloude.pagetype.server.server.jingrow.db.commit", new=MagicMock)
@patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock) @patch("jcloude.api.bench.jingrow.db.commit", new=MagicMock)
class TestArchiveObsoleteBenches(FrappeTestCase): class TestArchiveObsoleteBenches(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchApp(FrappeTestCase): class TestBenchApp(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchDependency(FrappeTestCase): class TestBenchDependency(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchGetAppCache(FrappeTestCase): class TestBenchGetAppCache(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchShell(FrappeTestCase): class TestBenchShell(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchShellLog(FrappeTestCase): class TestBenchShellLog(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchSiteUpdate(FrappeTestCase): class TestBenchSiteUpdate(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBenchUpdate(FrappeTestCase): class TestBenchUpdate(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBlockedDomain(FrappeTestCase): class TestBlockedDomain(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestBuildCacheShell(FrappeTestCase): class TestBuildCacheShell(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestBuildMetric(FrappeTestCase): class IntegrationTestBuildMetric(JingrowTestCase):
""" """
Integration tests for BuildMetric. Integration tests for BuildMetric.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestCertificateAuthority(FrappeTestCase): class TestCertificateAuthority(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestCloudRegion(FrappeTestCase): class TestCloudRegion(JingrowTestCase):
pass pass

View File

@ -6,7 +6,7 @@ from unittest.mock import MagicMock, Mock, patch
import boto3 import boto3
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from moto import mock_aws from moto import mock_aws
from jcloude.jcloude.pagetype.cluster.cluster import Cluster from jcloude.jcloude.pagetype.cluster.cluster import Cluster
@ -55,7 +55,7 @@ def create_test_cluster(
return cluster return cluster
class TestCluster(FrappeTestCase): class TestCluster(JingrowTestCase):
@mock_aws @mock_aws
def _setup_fake_vmis(self, series: list[str], cluster: Cluster | None = None): def _setup_fake_vmis(self, series: list[str], cluster: Cluster | None = None):
from jcloude.jcloude.pagetype.virtual_machine_image.test_virtual_machine_image import ( from jcloude.jcloude.pagetype.virtual_machine_image.test_virtual_machine_image import (

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestClusterPlan(FrappeTestCase): class TestClusterPlan(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestCodeServer(FrappeTestCase): class TestCodeServer(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestCookiePreferenceLog(FrappeTestCase): class TestCookiePreferenceLog(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestCurrencyExchange(FrappeTestCase): class IntegrationTestCurrencyExchange(JingrowTestCase):
""" """
Integration tests for CurrencyExchange. Integration tests for CurrencyExchange.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestDashboardBanner(FrappeTestCase): class TestDashboardBanner(JingrowTestCase):
pass pass

View File

@ -7,7 +7,7 @@ from unittest.mock import MagicMock, Mock, patch
import jingrow import jingrow
from jingrow.core.utils import find from jingrow.core.utils import find
from jingrow.model.naming import make_autoname from jingrow.model.naming import make_autoname
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.database_server.database_server import DatabaseServer from jcloude.jcloude.pagetype.database_server.database_server import DatabaseServer
from jcloude.jcloude.pagetype.server.server import BaseServer from jcloude.jcloude.pagetype.server.server import BaseServer
@ -41,7 +41,7 @@ def create_test_database_server(ip=None, cluster="Default") -> DatabaseServer:
@patch.object(Ansible, "run", new=Mock()) @patch.object(Ansible, "run", new=Mock())
class TestDatabaseServer(FrappeTestCase): class TestDatabaseServer(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()

View File

@ -3,7 +3,7 @@
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.database_server.test_database_server import ( from jcloude.jcloude.pagetype.database_server.test_database_server import (
create_test_database_server, create_test_database_server,
@ -13,7 +13,7 @@ from jcloude.utils.test import foreground_enqueue_pg
@patch.object(Ansible, "run", new=Mock()) @patch.object(Ansible, "run", new=Mock())
class TestDatabaseServerMariaDBVariable(FrappeTestCase): class TestDatabaseServerMariaDBVariable(JingrowTestCase):
def tearDown(self): def tearDown(self):
jingrow.db.rollback() jingrow.db.rollback()

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestDeploy(FrappeTestCase): class TestDeploy(JingrowTestCase):
pass pass

View File

@ -3,8 +3,8 @@
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestDeployBench(FrappeTestCase): class TestDeployBench(JingrowTestCase):
pass pass

View File

@ -8,7 +8,7 @@ from unittest import skip
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob
from jcloude.jcloude.pagetype.app.test_app import create_test_app from jcloude.jcloude.pagetype.app.test_app import create_test_app
@ -74,7 +74,7 @@ def create_test_deploy_candidate_build(
@patch("jcloude.jcloude.pagetype.deploy_candidate.deploy_candidate.jingrow.db.commit") @patch("jcloude.jcloude.pagetype.deploy_candidate.deploy_candidate.jingrow.db.commit")
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestDeployCandidate(FrappeTestCase): class TestDeployCandidate(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -6,7 +6,7 @@ import typing
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob from jcloude.jcloude.pagetype.agent_job.agent_job import AgentJob
from jcloude.jcloude.pagetype.app.test_app import create_test_app from jcloude.jcloude.pagetype.app.test_app import create_test_app
@ -29,7 +29,7 @@ if typing.TYPE_CHECKING:
@patch("jcloude.jcloude.pagetype.deploy_candidate.deploy_candidate.jingrow.db.commit") @patch("jcloude.jcloude.pagetype.deploy_candidate.deploy_candidate.jingrow.db.commit")
@patch.object(AgentJob, "enqueue_http_request", new=Mock()) @patch.object(AgentJob, "enqueue_http_request", new=Mock())
class TestDeployCandidateBuild(FrappeTestCase): class TestDeployCandidateBuild(JingrowTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()

View File

@ -4,7 +4,7 @@
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.deploy.deploy import create_deploy_candidate_differences from jcloude.jcloude.pagetype.deploy.deploy import create_deploy_candidate_differences
@ -14,5 +14,5 @@ def create_test_deploy_candidate_differences(*args, **kwargs):
return create_deploy_candidate_differences(*args, **kwargs) return create_deploy_candidate_differences(*args, **kwargs)
class TestDeployCandidateDifference(FrappeTestCase): class TestDeployCandidateDifference(JingrowTestCase):
pass pass

View File

@ -2,10 +2,10 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class IntegrationTestDiskPerformance(FrappeTestCase): class IntegrationTestDiskPerformance(JingrowTestCase):
""" """
Integration tests for DiskPerformance. Integration tests for DiskPerformance.
Use this class for testing interactions between multiple components. Use this class for testing interactions between multiple components.

View File

@ -8,7 +8,7 @@ from typing import TYPE_CHECKING
from unittest.mock import patch from unittest.mock import patch
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
from jcloude.jcloude.pagetype.account_request.test_account_request import ( from jcloude.jcloude.pagetype.account_request.test_account_request import (
create_test_account_request, create_test_account_request,
@ -46,7 +46,7 @@ def create_test_drip_email(
return drip_email return drip_email
class TestDripEmail(FrappeTestCase): class TestDripEmail(JingrowTestCase):
def setUp(self) -> None: def setUp(self) -> None:
self.trial_site_plan = create_test_plan("Site", is_trial_plan=True) self.trial_site_plan = create_test_plan("Site", is_trial_plan=True)
self.paid_site_plan = create_test_plan("Site", is_trial_plan=False) self.paid_site_plan = create_test_plan("Site", is_trial_plan=False)

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestERPNextConsultant(FrappeTestCase): class TestERPNextConsultant(JingrowTestCase):
pass pass

View File

@ -2,8 +2,8 @@
# See license.txt # See license.txt
# import jingrow # import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestERPNextSiteSettings(FrappeTestCase): class TestERPNextSiteSettings(JingrowTestCase):
pass pass

View File

@ -16,7 +16,7 @@ DEFAULT_DEPENDENCIES = [
] ]
class FrappeVersion(Page): class JingrowVersion(Page):
# begin: auto-generated types # begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block. # This code is auto-generated. Do not modify anything in this block.
@ -26,11 +26,11 @@ class FrappeVersion(Page):
from jingrow.types import DF from jingrow.types import DF
from jcloude.jcloude.pagetype.jingrow_version_dependency.jingrow_version_dependency import ( from jcloude.jcloude.pagetype.jingrow_version_dependency.jingrow_version_dependency import (
FrappeVersionDependency, JingrowVersionDependency,
) )
default: DF.Check default: DF.Check
dependencies: DF.Table[FrappeVersionDependency] dependencies: DF.Table[JingrowVersionDependency]
number: DF.Int number: DF.Int
public: DF.Check public: DF.Check
status: DF.Literal["Develop", "Beta", "Stable", "End of Life"] status: DF.Literal["Develop", "Beta", "Stable", "End of Life"]

View File

@ -3,10 +3,10 @@
import jingrow import jingrow
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestFrappeVersion(FrappeTestCase): class TestJingrowVersion(JingrowTestCase):
def test_create_jingrow_version_with_default_dependencies(self): def test_create_jingrow_version_with_default_dependencies(self):
number = 99 # version with no fixtures number = 99 # version with no fixtures
jingrow_version = jingrow.get_pg( jingrow_version = jingrow.get_pg(

View File

@ -5,7 +5,7 @@
from jingrow.model.document import Page from jingrow.model.document import Page
class FrappeVersionDependency(Page): class JingrowVersionDependency(Page):
# begin: auto-generated types # begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block. # This code is auto-generated. Do not modify anything in this block.

View File

@ -1,8 +1,8 @@
# Copyright (c) 2020, Jingrow and Contributors # Copyright (c) 2020, Jingrow and Contributors
# See license.txt # See license.txt
from jingrow.tests.utils import FrappeTestCase from jingrow.tests.utils import JingrowTestCase
class TestGitHubWebhookLog(FrappeTestCase): class TestGitHubWebhookLog(JingrowTestCase):
pass pass

Some files were not shown because too many files have changed in this diff Show More