summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-04 16:31:38 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-10 11:24:29 +0300
commit40edfe8a3d1af0fe4f780faba8cc4be4141e2d0d (patch)
tree4385dd50353780806c0e3ad9406df6701d03afe4 /subplot.py
parent23d24deeeef8e0d529ca16c693911cfd2d31d02f (diff)
downloadsubplot-40edfe8a3d1af0fe4f780faba8cc4be4141e2d0d.tar.gz
Change: check for embedded files with non-unique names
This is ugly and panics, but that's acceptable for now. We'll clean this up later.
Diffstat (limited to 'subplot.py')
-rw-r--r--subplot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot.py b/subplot.py
index 34c1968..bc972f8 100644
--- a/subplot.py
+++ b/subplot.py
@@ -49,6 +49,9 @@ def run_pandoc_with_filter(ctx, filename=None, output=None):
def file_exists(ctx, filename=None):
assert_eq(os.path.exists(filename), True)
+def file_does_not_exist(ctx, filename=None):
+ assert_eq(os.path.exists(filename), False)
+
def file_matches(ctx, filename=None, regex=None):
with open(filename) as f:
content = f.read()