mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
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:
parent
f9431aaf0f
commit
66d220bd9f
19 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue