test: Add test files
This commit is contained in:
parent
0a89c9e32e
commit
d7696f5f95
6 changed files with 28 additions and 7 deletions
|
|
@ -93,16 +93,10 @@ class TestWebPage(unittest.TestCase):
|
|||
|
||||
def test_home_page(self):
|
||||
content = get_response_content(path='/')
|
||||
print(content)
|
||||
content = get_response_content(path='/index')
|
||||
print(content)
|
||||
|
||||
def test_table_of_content(self):
|
||||
page = get_response(path='/_test/_test_folder/_test_toc')
|
||||
print(page)
|
||||
|
||||
def test_sidebar_data(self):
|
||||
pass
|
||||
|
||||
def test_meta_tags(self):
|
||||
pass
|
||||
|
|
@ -118,5 +112,4 @@ class TestWebPage(unittest.TestCase):
|
|||
|
||||
# breadcrumb
|
||||
# validate
|
||||
# cache no-cache
|
||||
# page context caching
|
||||
|
|
|
|||
6
frappe/www/_test/_sidebar.json
Normal file
6
frappe/www/_test/_sidebar.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"route": "/_test/_test_folder",
|
||||
"title": "Test Sidebar"
|
||||
}
|
||||
]
|
||||
0
frappe/www/_test/_test_folder/__init__.py
Normal file
0
frappe/www/_test/_test_folder/__init__.py
Normal file
|
|
@ -1,3 +1,4 @@
|
|||
{% block content %}
|
||||
{% include "templates/includes/web_sidebar.html" %}
|
||||
<p>Test content</p>
|
||||
{% endblock %}
|
||||
|
|
|
|||
9
frappe/www/_test/_test_folder/_test_toc.md
Normal file
9
frappe/www/_test/_test_folder/_test_toc.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Level 1
|
||||
|
||||
## Level 1.1
|
||||
|
||||
## Level 1.2
|
||||
|
||||
## Level 1.3
|
||||
|
||||
### Level 1.3.1
|
||||
12
frappe/www/_test/_test_folder/new.csv/index.html
Normal file
12
frappe/www/_test/_test_folder/new.csv/index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
Test Page
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Reference in a new issue