summaryrefslogtreecommitdiff
path: root/tests/testutils/junction.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/junction.py')
-rw-r--r--tests/testutils/junction.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/testutils/junction.py b/tests/testutils/junction.py
index e867695c4..c086f6f17 100644
--- a/tests/testutils/junction.py
+++ b/tests/testutils/junction.py
@@ -19,17 +19,12 @@ def generate_junction(tmpdir, subproject_path, junction_path, *, store_ref=True)
# Create a repo to hold the subproject and generate
# a junction element for it
#
- repo = create_repo('git', str(tmpdir))
+ repo = create_repo("git", str(tmpdir))
source_ref = ref = repo.create(subproject_path)
if not store_ref:
source_ref = None
- element = {
- 'kind': 'junction',
- 'sources': [
- repo.source_config(ref=source_ref)
- ]
- }
+ element = {"kind": "junction", "sources": [repo.source_config(ref=source_ref)]}
_yaml.roundtrip_dump(element, junction_path)
return ref