From cecb27ac82cd2ddfca0b57a7da50d10623dfb0fc Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Tue, 21 Apr 2020 12:46:37 +0200 Subject: [PATCH] test: '{. -> ./mod}/test_util_ostree.py' Move the OSTree utility tests into the module-unittests directory. Also drop the `__main__` workaround while at it. --- .github/workflows/tests.yml | 5 ----- test/{ => mod}/test_util_ostree.py | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) rename test/{ => mod}/test_util_ostree.py (98%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 138bae4a..73ea718f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,11 +82,6 @@ jobs: cd osbuild python3 -m unittest -v test.test_osrelease - - name: Run test_util_ostree - run: | - cd osbuild - python3 -m unittest -v test.test_util_ostree - rpm_build: name: "📦 RPM" runs-on: ubuntu-latest diff --git a/test/test_util_ostree.py b/test/mod/test_util_ostree.py similarity index 98% rename from test/test_util_ostree.py rename to test/mod/test_util_ostree.py index 0d203ce5..70cad3b4 100644 --- a/test/test_util_ostree.py +++ b/test/mod/test_util_ostree.py @@ -1,3 +1,7 @@ +# +# Tests for the 'osbuild.util.ostree' module. +# + import json import unittest import subprocess @@ -87,7 +91,3 @@ class TestObjectStore(unittest.TestCase): for p, v in params.items(): self.assertEqual(v, js[p]) - - -if __name__ == "__main__": - unittest.main()