Selaa lähdekoodia

added doctypes

version-14
Achilles Rasquinha 7 vuotta sitten
vanhempi
commit
15eaffdea1
3 muutettua tiedostoa jossa 1240 lisäystä ja 955 poistoa
  1. +23
    -0
      frappe/website/doctype/website_settings/test_website_settings.js
  2. +10
    -0
      frappe/website/doctype/website_settings/test_website_settings.py
  3. +1207
    -955
      frappe/website/doctype/website_settings/website_settings.json

+ 23
- 0
frappe/website/doctype/website_settings/test_website_settings.js Näytä tiedosto

@@ -0,0 +1,23 @@
/* eslint-disable */
// rename this file from _test_[name] to test_[name] to activate
// and remove above this line

QUnit.test("test: Website Settings", function (assert) {
let done = assert.async();

// number of asserts
assert.expect(1);

frappe.run_serially([
// insert a new Website Settings
() => frappe.tests.make('Website Settings', [
// values to be set
{key: 'value'}
]),
() => {
assert.equal(cur_frm.doc.key, 'value');
},
() => done()
]);

});

+ 10
- 0
frappe/website/doctype/website_settings/test_website_settings.py Näytä tiedosto

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals

import frappe
import unittest

class TestWebsiteSettings(unittest.TestCase):
pass

+ 1207
- 955
frappe/website/doctype/website_settings/website_settings.json
File diff suppressed because it is too large
Näytä tiedosto


Ladataan…
Peruuta
Tallenna