Skip to content
Snippets Groups Projects
Commit 313d66c5 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Include custom IDs in unittests.

parent edb701b4
Branches
Tags
5 merge requests!65Release v0.3.0,!64New year developments,!63Improve handling of long IDs,!62Export imported modules,!61Custom IDs
Pipeline #878128 passed
......@@ -39,6 +39,9 @@ def tagplot(
Other Parameters
----------------
figure_ids: list of str, optional
IDs that will be printed on the plot. If empty, IDs will be generated for each
plot. Default: [].
location : str, optional
Location for ID to be displayed on the plot. Default is "east".
rotation: float or int, optional
......
......@@ -43,11 +43,12 @@ class TestTagplotImage(unittest.TestCase):
IMGS_AS_LIST,
ROTATION,
POSITION,
figure_ids=["test123456", "654321tset"],
prefix=PROJECT_ID,
id_method=METHOD,
qrcode=True,
fontsize=10,
font="fonts/xolonium-fonts-4.1/ttf/Xolonium-Bold.ttf",
font="tests/fonts/xolonium-fonts-4.1/ttf/Xolonium-Bold.ttf",
fontcolor=(0, 1, 0),
)
options.validate_input()
......
......@@ -33,6 +33,7 @@ class TestTagplotMatplotlib(unittest.TestCase):
FIGS_AS_LIST,
ROTATION,
POSITION,
figure_ids=["test123456", "654321tset"],
prefix=PROJECT_ID,
id_method=METHOD,
qrcode=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment