test: Add test files

This commit is contained in:
Suraj Shetty 2021-05-20 13:44:35 +05:30
parent 0a89c9e32e
commit d7696f5f95
6 changed files with 28 additions and 7 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
[
{
"route": "/_test/_test_folder",
"title": "Test Sidebar"
}
]

View file

@ -1,3 +1,4 @@
{% block content %}
{% include "templates/includes/web_sidebar.html" %}
<p>Test content</p>
{% endblock %}

View file

@ -0,0 +1,9 @@
# Level 1
## Level 1.1
## Level 1.2
## Level 1.3
### Level 1.3.1

View 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>