mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 09:58:50 -06:00
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
|
|
|
import flectra
|
|
import flectra.tests
|
|
from flectra.tests.common import HOST
|
|
from flectra.tools import config
|
|
|
|
|
|
@flectra.tests.common.tagged('post_install', '-at_install', 'website_snippets')
|
|
class TestSnippets(flectra.tests.HttpCase):
|
|
|
|
def test_01_empty_parents_autoremove(self):
|
|
self.start_tour("/?enable_editor=1", "snippet_empty_parent_autoremove", login='admin')
|
|
|
|
def test_02_countdown_preview(self):
|
|
self.start_tour("/?enable_editor=1", "snippet_countdown", login='admin')
|
|
|
|
def test_03_snippet_image_gallery(self):
|
|
IrAttachment = self.env['ir.attachment']
|
|
base = "http://%s:%s" % (HOST, config['http_port'])
|
|
IrAttachment.create({
|
|
'public': True,
|
|
'name': 's_default_image.jpg',
|
|
'type': 'url',
|
|
'url': base + '/web/image/website.s_banner_default_image.jpg',
|
|
})
|
|
IrAttachment.create({
|
|
'public': True,
|
|
'name': 's_default_image2.jpg',
|
|
'type': 'url',
|
|
'url': base + '/web/image/website.s_banner_default_image.jpg',
|
|
})
|
|
self.start_tour("/", "snippet_image_gallery", login='admin')
|
|
|
|
def test_04_parallax(self):
|
|
self.start_tour('/', 'test_parallax', login='admin')
|