This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
frnkvieira
committed
Jun 30, 2018
1 parent
c0c7690
commit a03cfba
Showing
31 changed files
with
282 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
cython==0.28.3 | ||
pendulum==2.0.2 | ||
cython==0.28.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from vibora.tests import TestSuite | ||
from vibora.templates import TemplateEngine, Template | ||
|
||
|
||
class RenderSuite(TestSuite): | ||
|
||
def setUp(self): | ||
self.engine = TemplateEngine() | ||
|
||
async def test_empty_template_expects_empty_string(self): | ||
template = Template('') | ||
self.engine.add_template(template, ['test']) | ||
self.engine.compile_templates(verbose=False) | ||
self.assertEqual('', await self.engine.render('test')) | ||
|
||
async def test_render_for_with_with_unpacked_variables(self): | ||
template = Template('{% for a, b in [(1, 2)] %} {{ a }} + {{ b }} {% endfor %}') | ||
self.engine.add_template(template, ['test']) | ||
self.engine.compile_templates(verbose=False) | ||
self.assertEqual(' 1 + 2 ', await self.engine.render('test')) | ||
|
||
async def test_render_for_with_a_single_variable(self): | ||
template = Template('{% for a in [(1, 2)] %} {{ a }} {% endfor %}') | ||
self.engine.add_template(template, ['test']) | ||
self.engine.compile_templates(verbose=False) | ||
self.assertEqual(' (1, 2) ', await self.engine.render('test')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.