mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-09 08:50:28 +03:00
import: always load testcommon from localmodule
Having this import before sys.path.insert() made it load testcommon from the Debian package.
This commit is contained in:
parent
1e5699e90c
commit
685efa23d4
6 changed files with 6 additions and 8 deletions
|
|
@ -15,8 +15,6 @@ from collections import OrderedDict
|
|||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
from testcommon import TmpCwd, mkdtemp
|
||||
|
||||
localmodule = Path(__file__).resolve().parent.parent
|
||||
print('localmodule: ' + str(localmodule))
|
||||
if localmodule not in sys.path:
|
||||
|
|
@ -26,6 +24,7 @@ import fdroidserver
|
|||
from fdroidserver import metadata
|
||||
from fdroidserver.exception import MetaDataException
|
||||
from fdroidserver.common import DEFAULT_LOCALE
|
||||
from testcommon import TmpCwd, mkdtemp
|
||||
|
||||
|
||||
def _get_mock_mf(s):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue