Skip to content

Commit

Permalink
Improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Jul 9, 2024
1 parent 5d57843 commit 3871759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ def test_generating_barcodes(
) -> None:
os.makedirs(TESTPATH, exist_ok=True)

objects = gather_image_elements_into_html
image_elements = gather_image_elements_into_html

def append(x, y) -> None:
objects.append(OBJECTS.format(filename=x, name=y))
image_elements.append(OBJECTS.format(filename=x, name=y))

def append_img(x, y) -> None:
objects.append(IMAGES.format(filename=x, name=y))
image_elements.append(IMAGES.format(filename=x, name=y))

options = {}
bcode = get_barcode(codename, code)
Expand All @@ -87,7 +87,7 @@ def append_img(x, y) -> None:
filename = bcode.save(os.path.join(TESTPATH, codename), options=opts)
append_img(os.path.basename(filename), bcode.name)
else:
objects.append(NO_PIL)
image_elements.append(NO_PIL)


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 3871759

Please sign in to comment.