1
0
Fork 0
mirror of https://github.com/shouptech/synthale.git synced 2026-02-03 15:39:45 +00:00

Display color

This commit is contained in:
Emma 2018-12-24 08:49:50 -07:00
parent 2c50a4b513
commit 6e1a4c9d74
2 changed files with 5 additions and 5 deletions

View file

@ -95,9 +95,9 @@ class MarkdownRecipe:
self.recipe.fg), self.recipe.fg),
'{}: {}'.format(markdown.strong('Estimated IBU'), '{}: {}'.format(markdown.strong('Estimated IBU'),
int(self.recipe.ibu)), int(self.recipe.ibu)),
'{}: {}'.format(markdown.strong('Estimated SRM'), '{}: {:.1f}'.format(markdown.strong('Estimated SRM'),
'not implemented'), self.recipe.color),
'{}: {:.1f}'.format(markdown.strong('Estimated ABV'), '{}: {:.1f} %'.format(markdown.strong('Estimated ABV'),
self.recipe.abv) self.recipe.abv)
)) ))

View file

@ -76,8 +76,8 @@ def test_recipe_details(md_weizen):
'**Estimated OG**: 1.051\n' '**Estimated OG**: 1.051\n'
'**Estimated FG**: 1.015\n' '**Estimated FG**: 1.015\n'
'**Estimated IBU**: 15\n' '**Estimated IBU**: 15\n'
'**Estimated SRM**: not implemented\n' '**Estimated SRM**: 3.0\n'
'**Estimated ABV**: 4.7' '**Estimated ABV**: 4.7 %'
) )
md_weizen.vol_unit = 'liters' md_weizen.vol_unit = 'liters'