test: '{. -> ./mod}/test_util_ostree.py'

Move the OSTree utility tests into the module-unittests directory. Also
drop the `__main__` workaround while at it.
This commit is contained in:
David Rheinsberg 2020-04-21 12:46:37 +02:00 committed by Christian Kellner
parent 6a7e811af2
commit cecb27ac82
2 changed files with 4 additions and 9 deletions

View file

@ -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

View file

@ -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()