-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from labelle-org/tshalev-add-tests
Add unit tests for render engines
- Loading branch information
Showing
53 changed files
with
424 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
from labelle.lib.render_engines.barcode import BarcodeRenderEngine | ||
from labelle.lib.render_engines.barcode import BarcodeRenderEngine, BarcodeRenderError | ||
from labelle.lib.render_engines.barcode_with_text import BarcodeWithTextRenderEngine | ||
from labelle.lib.render_engines.empty import EmptyRenderEngine | ||
from labelle.lib.render_engines.exceptions import NoContentError | ||
from labelle.lib.render_engines.horizontally_combined import ( | ||
HorizontallyCombinedRenderEngine, | ||
) | ||
from labelle.lib.render_engines.margins import MarginsRenderEngine | ||
from labelle.lib.render_engines.picture import NoPictureFilePath, PictureRenderEngine | ||
from labelle.lib.render_engines.picture import ( | ||
PicturePathDoesNotExist, | ||
PictureRenderEngine, | ||
UnidentifiedImageFileError, | ||
) | ||
from labelle.lib.render_engines.print_payload import PrintPayloadRenderEngine | ||
from labelle.lib.render_engines.print_preview import PrintPreviewRenderEngine | ||
from labelle.lib.render_engines.qr import NoContentError, QrRenderEngine | ||
from labelle.lib.render_engines.qr import QrRenderEngine, QrTooBigError | ||
from labelle.lib.render_engines.render_context import RenderContext | ||
from labelle.lib.render_engines.render_engine import RenderEngine | ||
from labelle.lib.render_engines.test_pattern import TestPatternRenderEngine | ||
from labelle.lib.render_engines.sample_pattern import SamplePatternRenderEngine | ||
from labelle.lib.render_engines.text import TextRenderEngine | ||
|
||
__all__ = [ | ||
"BarcodeRenderEngine", | ||
"BarcodeRenderError", | ||
"BarcodeWithTextRenderEngine", | ||
"EmptyRenderEngine", | ||
"HorizontallyCombinedRenderEngine", | ||
"MarginsRenderEngine", | ||
"NoContentError", | ||
"NoPictureFilePath", | ||
"PicturePathDoesNotExist", | ||
"PictureRenderEngine", | ||
"PrintPayloadRenderEngine", | ||
"PrintPreviewRenderEngine", | ||
"QrRenderEngine", | ||
"QrTooBigError", | ||
"RenderContext", | ||
"RenderEngine", | ||
"TestPatternRenderEngine", | ||
"SamplePatternRenderEngine", | ||
"TextRenderEngine", | ||
"UnidentifiedImageFileError", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from labelle.lib.render_engines.render_engine import RenderEngineException | ||
|
||
|
||
class NoContentError(RenderEngineException): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.