tests: rename testcommon module to shared_test_code

This name always confuses me, since there is also test_common.py. And this
module is not actually a test suite, even though it starts with "test".
This also makes for better tab completion, e.g.

python3 -m unittest tests/te[Tab] -> tests/test_
This commit is contained in:
Hans-Christoph Steiner 2024-12-18 11:17:52 +01:00
parent f9431aaf0f
commit 66d220bd9f
19 changed files with 19 additions and 19 deletions

View file

@ -8,7 +8,7 @@ import unittest
import fdroidserver.common
import fdroidserver.init
from . import testcommon
from .shared_test_code import mkdtemp
basedir = pathlib.Path(__file__).parent
@ -19,7 +19,7 @@ class InitTest(unittest.TestCase):
def setUp(self):
fdroidserver.common.config = None
fdroidserver.init.config = None
self._td = testcommon.mkdtemp()
self._td = mkdtemp()
self.testdir = self._td.name
os.chdir(self.testdir)