From: Michael Tremer Date: Sat, 9 Jan 2021 16:21:36 +0000 (+0000) Subject: python: Add an example test X-Git-Tag: 0.9.28~1285^2~919 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77511b48e60980ec544ee1cb1ca4a3fcdbe66d73;p=pakfire.git python: Add an example test Signed-off-by: Michael Tremer --- 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()