summaryrefslogtreecommitdiff
path: root/test/extension_crafting.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/extension_crafting.py')
-rw-r--r--test/extension_crafting.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/extension_crafting.py b/test/extension_crafting.py
index 6f1800b..9b985b3 100644
--- a/test/extension_crafting.py
+++ b/test/extension_crafting.py
@@ -116,6 +116,8 @@ def make_extension(destination_dir,
destination_path = destination_dir / f'{extension_id}.xpi'
with zipfile.ZipFile(destination_path, 'x') as xpi:
for filename, contents in files.items():
+ if hasattr(contents, '__call__'):
+ contents = contents()
xpi.writestr(filename, contents)
return destination_path