Add simple smoke test
Related: bz#1950291
This commit is contained in:
parent
a66f9cf8d7
commit
2b4517848c
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
7
tests/smoke.fmf
Normal file
7
tests/smoke.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
description: |
|
||||
Runs very simple babel example which should always work
|
||||
test: python3 smoke.py
|
||||
framework: shell
|
||||
require:
|
||||
- python3
|
||||
- python3-babel
|
4
tests/smoke.py
Normal file
4
tests/smoke.py
Normal file
@ -0,0 +1,4 @@
|
||||
from datetime import date
|
||||
from babel.dates import format_date
|
||||
|
||||
assert format_date(date(2021,3,1), locale='en') == 'Mar 1, 2021'
|
Loading…
Reference in New Issue
Block a user