initiating django package from a work in progress lib
This commit is contained in:
4
tests/templates/invalid_front_matter.md
Normal file
4
tests/templates/invalid_front_matter.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
subject is invalid
|
||||
---
|
||||
This shall raise a InvalidFrontMatter exception
|
||||
4
tests/templates/minimal.md
Normal file
4
tests/templates/minimal.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
subject: "Hello"
|
||||
---
|
||||
Hello world !
|
||||
2
tests/templates/missing_front_matter.md
Normal file
2
tests/templates/missing_front_matter.md
Normal file
@ -0,0 +1,2 @@
|
||||
# Gabarit sans front matter délimité
|
||||
Ce fichier n'a pas de front matter valide.
|
||||
5
tests/templates/missing_front_matter_subject.md
Normal file
5
tests/templates/missing_front_matter_subject.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
to: "test@example.com"
|
||||
cc: "another@example.com"
|
||||
---
|
||||
This shall raise a MissingSubject exception
|
||||
8
tests/templates/test_groups.md
Normal file
8
tests/templates/test_groups.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
subject: "Notification de groupe"
|
||||
to_groups:
|
||||
- "managers"
|
||||
cc:
|
||||
- "{{ extra_email }}"
|
||||
---
|
||||
Message envoyé au groupe.
|
||||
5
tests/templates/test_missing_subject_var.md
Normal file
5
tests/templates/test_missing_subject_var.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
subject: "Notification pour {{ missing_user }}"
|
||||
to: "test@example.com"
|
||||
---
|
||||
Corps de test.
|
||||
5
tests/templates/test_missing_to_var.md
Normal file
5
tests/templates/test_missing_to_var.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
subject: "Sujet présent"
|
||||
to: "{{ missing_recipient }}"
|
||||
---
|
||||
Corps de test.
|
||||
14
tests/templates/test_nominal.md
Normal file
14
tests/templates/test_nominal.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
subject: "Bienvenue à la session {{ session_title }}"
|
||||
to: "{{ recipient_email }}"
|
||||
reply_to: "contact@gobelins.fr"
|
||||
format: both
|
||||
---
|
||||
# Formation {{ session_title }}
|
||||
|
||||
Bonjour {{ recipient_name }},
|
||||
|
||||
Voici le programme :
|
||||
{% for item in items %}
|
||||
* {{ item }}
|
||||
{% endfor %}
|
||||
6
tests/templates/test_nonexistent_group.md
Normal file
6
tests/templates/test_nonexistent_group.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
subject: "Notification inexistante"
|
||||
to_groups:
|
||||
- "inexistant"
|
||||
---
|
||||
Message.
|
||||
6
tests/templates/test_optional_warning.md
Normal file
6
tests/templates/test_optional_warning.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
subject: "Sujet présent"
|
||||
to: "{{ recipient_email }}"
|
||||
reply_to: "{{ missing_reply_to }}"
|
||||
---
|
||||
Corps de test.
|
||||
Reference in New Issue
Block a user