summaryrefslogtreecommitdiff
path: root/tests/debbugs.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-10 13:36:57 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-05-10 13:39:07 +0200
commit1f33b5114d62e2e9e5a86e46d2c63c42a61d7ba3 (patch)
tree29477cfae036ae676606f406b26456a5df8e6e96 /tests/debbugs.scm
parent37742c886f4ab15b1d74331f399a0ca3d6412901 (diff)
tests/debbugs: Add test for active bug's summary file.
* tests/debbugs.scm ("bug-id->summary-file: return active summary file"): New test. * tests/data/spool/db-h/99/33299.{report,status,summary}: New files.
Diffstat (limited to 'tests/debbugs.scm')
-rw-r--r--tests/debbugs.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/debbugs.scm b/tests/debbugs.scm
index 6631b9f..bda53e1 100644
--- a/tests/debbugs.scm
+++ b/tests/debbugs.scm
@@ -43,4 +43,11 @@ given by REPLACEMENT."
('data-dir data-dir)))
((@@ (mumi debbugs) bug-id->summary-file) 26095)))
+(test-equal "bug-id->summary-file: return active summary file"
+ (format #f "~a/spool/db-h/99/33299.summary" data-dir)
+ (mock ((mumi config) %config
+ (match-lambda
+ ('data-dir data-dir)))
+ ((@@ (mumi debbugs) bug-id->summary-file) 33299)))
+
(test-end "debbugs")