Skip to content

Commit

Permalink
v0.1.5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Keim committed Jan 16, 2023
1 parent 7ae2a9e commit 1a16887
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_kubi.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ def test_main_row_multi(capsys):
dst0 = pyvips.Image.new_from_file(dst_names[0])
assert dst0.width == 512 * 6 and dst0.height == 512

#def test_main_row_order_rotate(capsys):
# args = ['-l','row','--order', '0', '1', '5', '4', '2', '3', '--rotate', '270','90','180','0','0','180', '-s','512', path_in+'base*.tif', path_out+'basemap_row_order_rotate.png']
# print('\nargs: '+' '.join(args))
# main(args)
#
# dst_names = glob.glob(path_out+"*_row_order_rotate.png")
# assert len(dst_names) == 2
# dst0 = pyvips.Image.new_from_file(dst_names[0])
# assert dst0.width == 512 * 6 and dst0.height == 512
def test_main_row_order_rotate(capsys):
args = ['-l','row','--order', '0', '1', '5', '4', '2', '3', '--rotate', '270','90','180','0','0','180', '-s','512', path_in+'base*.tif', path_out+'basemap_row_order_rotate.png']
print('\nargs: '+' '.join(args))
main(args)

dst_names = glob.glob(path_out+"*_row_order_rotate.png")
assert len(dst_names) == 2
dst0 = pyvips.Image.new_from_file(dst_names[0])
assert dst0.width == 512 * 6 and dst0.height == 512

def test_main_crossL(capsys):
args = ['-l','crossL','-i','horizontal', path_in+'basemap.tif', path_out+'basemap_crossL.png']
Expand Down

0 comments on commit 1a16887

Please sign in to comment.