refactoring
This commit is contained in:
parent
6a6fc19958
commit
e01b5c9acd
@ -161,8 +161,8 @@ def get_pdfnet_corner_metadata(base_position_metadata, get_metadata_for_coords,
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def base_position_metadata(WIDTH, HEIGHT, PAGE_WIDTH, PAGE_HEIGHT):
|
||||
return get_base_position_metadata(WIDTH, HEIGHT, PAGE_WIDTH, PAGE_HEIGHT)
|
||||
def base_position_metadata(width, height, page_width, page_height):
|
||||
return get_base_position_metadata(width, height, page_width, page_height)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@ -183,22 +183,22 @@ def get_image_and_page_edge_lengths(base_position_metadata):
|
||||
|
||||
|
||||
@pytest.fixture(params=[33, 100])
|
||||
def HEIGHT(request):
|
||||
def height(request):
|
||||
return request.param
|
||||
|
||||
|
||||
@pytest.fixture(params=[10, 31])
|
||||
def WIDTH(request):
|
||||
def width(request):
|
||||
return request.param
|
||||
|
||||
|
||||
@pytest.fixture(params=[220, 30])
|
||||
def PAGE_HEIGHT(request):
|
||||
def page_height(request):
|
||||
return request.param
|
||||
|
||||
|
||||
@pytest.fixture(params=[100, 310])
|
||||
def PAGE_WIDTH(request):
|
||||
def page_width(request):
|
||||
return request.param
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user