forked from python-escpos/python-escpos
-
Notifications
You must be signed in to change notification settings - Fork 0
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 python-escpos#298 from python-escpos/development
release v3.0a4
- Loading branch information
Showing
17 changed files
with
141 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "capabilities-data"] | ||
path = capabilities-data | ||
url = https://github.com/receipt-print-hq/escpos-printer-db.git | ||
branch = master |
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 |
---|---|---|
|
@@ -8,5 +8,7 @@ Cody (Quantified Code Bot) <[email protected]> Cody <[email protected] | |
Renato Lorenzi <[email protected]> Renato.Lorenzi <[email protected]> | ||
Ahmed Tahri <[email protected]> TAHRI Ahmed <[email protected]> | ||
Michael Elsdörfer <[email protected]> Michael Elsdörfer <[email protected]> | ||
Juanmi Taboada <[email protected]> Juanmi Taboada <[email protected]> | ||
csoft2k <[email protected]> | ||
Sergio Pulgarin <[email protected]> | ||
reck31 <[email protected]> |
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
Submodule capabilities-data
updated
8 files
+7 −28 | README.md | |
+25 −0 | data/profile/TM-T88IV-SA.yml | |
+27 −0 | data/profile/TM-T88IV.yml | |
+1 −0 | data/profile/default.yml | |
+1 −0 | data/profile/simple.yml | |
+114 −0 | dist/capabilities.json | |
+96 −0 | dist/capabilities.yml | |
+103 −0 | doc/add-your-printer.md |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/python | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
import escpos.printer as printer | ||
from escpos.exceptions import CashDrawerError | ||
import pytest | ||
|
||
|
||
def test_raise_CashDrawerError(): | ||
"""should raise an error if the sequence is invalid. | ||
""" | ||
instance = printer.Dummy() | ||
with pytest.raises(CashDrawerError): | ||
# call with sequence that is too long | ||
instance.cashdraw([1,1,1,1,1,1]) | ||
|
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,8 @@ | ||
from nose.tools import assert_raises | ||
from escpos.printer import Dummy | ||
|
||
def test_printer_dummy_clear(): | ||
printer = Dummy() | ||
printer.text("Hello") | ||
printer.clear() | ||
assert(printer.output == b'') |
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.