diff options
author | xebd <xeb@mail.ru> | 2022-09-12 10:56:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 10:56:47 +0300 |
commit | 28fe4de9441aa9d0c42c010e8eef5b1a19122c9d (patch) | |
tree | ecefcafbeb9c9610ed3cf8c30a238b9168bba3bb /tests/common/config.py | |
parent | 25c72614bf8106b0e4f71e2bce70514b03858463 (diff) | |
parent | 127b1de95923fccdfdc892c20f931d364e099f4b (diff) | |
download | accel-ppp-28fe4de9441aa9d0c42c010e8eef5b1a19122c9d.tar.gz accel-ppp-28fe4de9441aa9d0c42c010e8eef5b1a19122c9d.zip |
Merge pull request #61 from svlobanov/tests2
add tests and ci workflow for running tests
Diffstat (limited to 'tests/common/config.py')
-rw-r--r-- | tests/common/config.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/common/config.py b/tests/common/config.py new file mode 100644 index 00000000..94ddcd8c --- /dev/null +++ b/tests/common/config.py @@ -0,0 +1,15 @@ +import tempfile +import os + + +def make_tmp(content): + f = tempfile.NamedTemporaryFile(delete=False) + print("make_tmp filename: " + f.name) + f.write(bytes(content, "utf-8")) + f.close() + return f.name + + +def delete_tmp(filename): + print("delete_tmp filename: " + filename) + os.unlink(filename) |