summaryrefslogtreecommitdiff
path: root/tests/testutils/repo/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/repo/__init__.py')
-rw-r--r--tests/testutils/repo/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils/repo/__init__.py b/tests/testutils/repo/__init__.py
index 1123d6f5e..ff6844cf1 100644
--- a/tests/testutils/repo/__init__.py
+++ b/tests/testutils/repo/__init__.py
@@ -24,10 +24,10 @@ ALL_REPO_KINDS['zip'] = Zip
# kind (str): The kind of repo to create (a source plugin basename)
# directory (str): The path where the repo will keep a cache
#
-def create_repo(kind, directory):
+def create_repo(kind, directory, subdir='repo'):
try:
constructor = ALL_REPO_KINDS[kind]
except KeyError as e:
raise AssertionError("Unsupported repo kind {}".format(kind)) from e
- return constructor(directory)
+ return constructor(directory, subdir=subdir)