mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-10 08:46:11 -04:00
use shared test function to replicate .testfiles setup
* It should include a subdir named after the test case. * self.testdir is the common var name for this. * tmp_repo is not a repo/ subdir, but instead the root of the whole repo
This commit is contained in:
@@ -79,7 +79,7 @@ def mkdir_testfiles(localmodule, test):
|
||||
testroot.mkdir(exist_ok=True)
|
||||
testdir = testroot / unittest.TestCase.id(test)
|
||||
testdir.mkdir(exist_ok=True)
|
||||
return tempfile.mkdtemp(dir=testdir)
|
||||
return Path(tempfile.mkdtemp(dir=testdir))
|
||||
|
||||
|
||||
def mock_urlopen(status=200, body=None):
|
||||
|
||||
Reference in New Issue
Block a user