ADD: dav_base: added test for template tag include_if_exist.
This commit is contained in:
6
dav_base/templates/dav_base/tests/include_if_exist.html
Normal file
6
dav_base/templates/dav_base/tests/include_if_exist.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{# This template is used by software tests #}{% load dav_base %}
|
||||
--{% include_if_exist './includes/include_missing.html' %}--
|
||||
--{% include_if_exist './includes/include_missing.html' default 'dav_base/tests/includes/include_default.html' %}--
|
||||
--{% include_if_exist './includes/include_optional.html' %}--
|
||||
--{% include_if_exist './includes/include_optional.html' default 'dav_base/tests/includes/include_default.html' %}--
|
||||
--{% include_if_exist './includes/include_with_missing_include.html' %}--
|
||||
@@ -0,0 +1,2 @@
|
||||
{# This template is used by software tests #}{% load dav_base %}
|
||||
--{% include_if_exist './includes/include_missing.html' default './includes/include_missing.html' %}--
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load dav_base %}
|
||||
This template is used by the automatic software tests.
|
||||
--{% include_if_exist './includes/include_optional.html' default %}--
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load dav_base %}
|
||||
This template is used by the automatic software tests.
|
||||
--{% include_if_exist './includes/include_optional.html' 'bogus' %}--
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load dav_base %}
|
||||
This template is used by the automatic software tests.
|
||||
--{% include_if_exist %}--
|
||||
@@ -0,0 +1 @@
|
||||
{# This template is used by software tests #}DEFAULT INCLUDED HTML
|
||||
@@ -0,0 +1 @@
|
||||
{# This template is used by software tests #}OPTIONAL INCLUDED HTML
|
||||
@@ -0,0 +1,2 @@
|
||||
{# This template is used by software tests #}{% load dav_base %}
|
||||
--{% include './include_missing.html' %}--
|
||||
Reference in New Issue
Block a user