From 77511b48e60980ec544ee1cb1ca4a3fcdbe66d73 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 9 Jan 2021 16:21:36 +0000 Subject: [PATCH] python: Add an example test Signed-off-by: Michael Tremer --- Makefile.am | 3 ++- tests/python/test.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 tests/python/test.py diff --git a/Makefile.am b/Makefile.am index d14a53b80..7ab952b05 100644 --- a/Makefile.am +++ b/Makefile.am @@ -595,7 +595,8 @@ TESTS_ENVIRONMENT = \ PYTHONPATH="$(top_srcdir)/.libs:$(top_srcdir)/src" \ topdir="$(shell pwd)" -#dist_check_SCRIPTS = \ +dist_check_SCRIPTS = \ + tests/python/test.py # tests/module-load.py TESTS = \ diff --git a/tests/python/test.py b/tests/python/test.py new file mode 100755 index 000000000..f1a5a051a --- /dev/null +++ b/tests/python/test.py @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +import unittest + +class Test(unittest.TestCase): + """ + This is an example test for Pakfire + """ + def test_example(self): + self.assertEqual("ABC", "ABC") + +if __name__ == "__main__": + unittest.main() -- 2.47.2