• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Révisionbc2efe20de55c9f5855fddbc0082052460fbff99 (tree)
l'heure2023-09-20 04:53:21
AuteurAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Message de Log

refactored

Change Summary

Modification

diff -r 9e2d036c47c9 -r bc2efe20de55 pytst/writers/RPy/test_0.py
--- a/pytst/writers/RPy/test_0.py Tue Sep 19 21:50:49 2023 +0200
+++ b/pytst/writers/RPy/test_0.py Tue Sep 19 21:53:21 2023 +0200
@@ -9,10 +9,11 @@
99 from castle.writers import RPy
1010
1111 template_dir ="./templates/"
12+t_dir = get_dirPath_of_file(__file__) / template_dir
1213
1314 def test_simpel_template():
1415 HW_file = 'HW_template.txt'
15- t_dir = get_dirPath_of_file(__file__) / template_dir
16+
1617
1718 template = RPy.Template(searchpath=t_dir, template=HW_file)
1819 out=template.render(Hello='{{Hello}}', World='{{World}}') # Generates itself
@@ -20,3 +21,8 @@
2021 ref=open(t_dir / HW_file).read()
2122 assert end_with_NL(ref) == end_with_NL(out), f"ref::\n{ref}\nout::\n{out}\nDo not match"
2223
24+
25+def test_base_child_template():
26+ child = 'child.txt'
27+
28+ template = RPy.Template(searchpath=t_dir, template=child)