[mirror] Generates barcoded PDF to backup text files on paper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
backupill/tests/test_utils.py

17 lines
408 B

import os
import pytest
import backupill as bp
this_dir, this_filename = os.path.split(__file__)
get_test_file = lambda file_name: os.path.join(this_dir, file_name)
def test_generate_backup():
result = bp.generate_backup(get_test_file("secret_key.asc"))
assert result == None
def test_restore_backup():
result = bp.restore_backup(get_test_file("secret_key.asc.pdf"))
assert result == 0