|
42 | 42 | {:^;:}{:replace; /{:;__test-nts:}/{:;__test-arr-nts->0:}/ >> {:;__hello-nts:} :} |
43 | 43 | {:^;:}{:same; /{:;__test-nts:}/{:;__test-nts:}/ >> {:;__test-nts:} :} |
44 | 44 | {:^;:}{:trans; {:trans; Hello nts :} :} |
| 45 | + {:^;:}{:obj; tests/obj.json :} |
45 | 46 | {:^cache; /3/ >> |
46 | 47 | {:^;:}::--::{:^date; %S :}::--:: |
47 | 48 | {:^;:}{:sum; /{:;one:}/{:;one:}/ :} |
|
72 | 73 | {:^;:}{:replace; /{:;__test-nts:}/{:;__test-arr-nts->0:}/ >> {:;__hello-nts:} :} |
73 | 74 | {:^;:}{:same; /{:;__test-nts:}/{:;__test-nts:}/ >> {:;__test-nts:} :} |
74 | 75 | {:^;:}{:trans; {:trans; Hello nts :} :} |
| 76 | + {:^;:}{:obj; tests/obj.json :} |
75 | 77 | {:!cache; |
76 | 78 | {:^;:}::--::{:^date; %S :}::--:: |
77 | 79 | {:^;:}{:sum; /{:;one:}/{:;one:}/ :} |
|
102 | 104 | {:^;:}{:replace; /{:;__test-nts:}/{:;__test-arr-nts->0:}/ >> {:;__hello-nts:} :} |
103 | 105 | {:^;:}{:same; /{:;__test-nts:}/{:;__test-nts:}/ >> {:;__test-nts:} :} |
104 | 106 | {:^;:}{:trans; {:trans; Hello nts :} :} |
| 107 | + {:^;:}{:obj; tests/obj.json :} |
105 | 108 | :} |
106 | 109 | :} |
107 | 110 | """.strip() |
@@ -372,7 +375,7 @@ def test_bif_cache_complete(self): |
372 | 375 | template.set_source(TEMPLATE_CACHE) |
373 | 376 | template.merge_schema(SCHEMA2) |
374 | 377 | contents = template.render() |
375 | | - expected = "2<div id=\"\" class=\"neutral-fetch-auto \" data-url=\"/url\" data-wrap=\"\">\n loading...\n</div>one|two|threeHello ntsHello nts0one1two2threetrueHello ntsHello ntscontainsis definedelsentsis filled01234567895c96e4f24ce6e234e6bd4df066748030en{:neutral; {:;__test-nts:} >> {:;__test-nts:} :}1Hello onentsHello" |
| 378 | + expected = "2<div id=\"\" class=\"neutral-fetch-auto \" data-url=\"/url\" data-wrap=\"\">\n loading...\n</div>one|two|threeHello ntsHello nts0one1two2threetrueHello ntsHello ntscontainsis definedelsentsis filled01234567895c96e4f24ce6e234e6bd4df066748030en{:neutral; {:;__test-nts:} >> {:;__test-nts:} :}1Hello onentsHelloPython Obj" |
376 | 379 |
|
377 | 380 | result_write_parts = contents.split("::--::") |
378 | 381 | self.assertEqual(result_write_parts[0], "<div1>1nts</div1><div2>2nts</div2><div3>3nts</div3>") |
|
0 commit comments