basics and tests done.

This commit is contained in:
2022-07-12 17:15:28 +02:00
parent 2b077152f4
commit b5a54de804
6 changed files with 433 additions and 3 deletions

21
tests/test_utils.py Normal file
View File

@@ -0,0 +1,21 @@
import pytest
from cristallina.utils import ROI, print_run_info
__author__ = "Alexander Steppke"
def test_print(capsys):
print_run_info(247)
captured = capsys.readouterr()
assert "15453208940" in captured.out
assert "LiTbF4_rocking" in captured.out
def test_ROI():
"""API Tests"""
r = ROI(left=1, right=2, top=4, bottom=2)
assert r.width == 1
assert r.height == 2