quicktex/tests/__init__.py
drewcassidy faa7e4df08 Remove test images as a submodule
They were causing problems for users without LFS installed, and unnecessary except for tests
2021-04-13 01:15:59 -07:00

10 lines
528 B
Python

import os.path
# Some checks to run before tests can begin
images_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'images')
assert os.path.isdir(images_path), 'test images repo not present'
assert os.path.isfile(os.path.join(images_path, '__init__.py')), 'images __init__.py not present, is the test image repo present?'
bp_size = os.path.getsize(os.path.join(images_path, 'Boilerplate.png'))
assert bp_size == 955989, 'Boilerplate.png is the wrong size, is the test image repo checked out with LFS enabled?'