mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Allow to check for empty output in tests
This commit is contained in:
@@ -392,10 +392,6 @@ class BaseTest(object):
|
|||||||
a = match_prepare(a)
|
a = match_prepare(a)
|
||||||
b = match_prepare(b)
|
b = match_prepare(b)
|
||||||
|
|
||||||
# Make sure there is something to compare after `match_prepare`
|
|
||||||
if not a or not b:
|
|
||||||
raise Exception("content empty")
|
|
||||||
|
|
||||||
if a != b:
|
if a != b:
|
||||||
diff = "".join(difflib.unified_diff(
|
diff = "".join(difflib.unified_diff(
|
||||||
[l + "\n" for l in a.split("\n")], [l + "\n" for l in b.split("\n")]))
|
[l + "\n" for l in a.split("\n")], [l + "\n" for l in b.split("\n")]))
|
||||||
|
|||||||
Reference in New Issue
Block a user