From c88a0248d64101d3df3def796441ee78012778e8 Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Fri, 16 Jul 2021 12:30:11 +0200 Subject: [PATCH] CI: Import simple smoke test from c9s Cherry-picked from https://gitlab.com/redhat/centos-stream/rpms/babel/-/commit/2b4517848cb76e781b0c65bfd325a7ecf719e7dc --- .fmf/version | 1 + plans.fmf | 4 ++++ tests/smoke.fmf | 7 +++++++ tests/smoke.py | 4 ++++ 4 files changed, 16 insertions(+) create mode 100644 .fmf/version create mode 100644 plans.fmf create mode 100644 tests/smoke.fmf create mode 100644 tests/smoke.py diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 0000000..e6427de --- /dev/null +++ b/plans.fmf @@ -0,0 +1,4 @@ +discover: + how: fmf +execute: + how: tmt diff --git a/tests/smoke.fmf b/tests/smoke.fmf new file mode 100644 index 0000000..c9d69ca --- /dev/null +++ b/tests/smoke.fmf @@ -0,0 +1,7 @@ +description: | + Runs very simple babel example which should always work +test: python3 smoke.py +framework: shell +require: +- python3 +- python3-babel diff --git a/tests/smoke.py b/tests/smoke.py new file mode 100644 index 0000000..4364761 --- /dev/null +++ b/tests/smoke.py @@ -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'