Skip to content

Commit

Permalink
git subrepo pull --force lib/Prusa-Error-Codes
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "lib/Prusa-Error-Codes"
  merged:   "ba88e2d31"
upstream:
  origin:   "[email protected]:prusa3d/Prusa-Error-Codes.git"
  branch:   "master"
  commit:   "ba88e2d31"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
  • Loading branch information
michalrudolf committed Dec 12, 2024
1 parent 869788c commit b6d3f24
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 53 deletions.
6 changes: 3 additions & 3 deletions lib/Prusa-Error-Codes/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = [email protected]:prusa3d/Prusa-Error-Codes.git
branch = master
commit = 2a9961e7185d608be9fa19b072105402b4fec46b
parent = 3b93a92bbc63463a59a7dc14013d02313f1c3291
commit = ba88e2d3152fb2afc7f812533773e0ba895c25fa
parent = 869788ce1254db136e120033314682ca478d5c8c
method = merge
cmdver = 0.4.3
cmdver = 0.4.9
1 change: 1 addition & 0 deletions lib/Prusa-Error-Codes/prusaerrors/shared/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Printer(IntEnum):
MK39S = 0x001B
MK35S = 0x001C
M1 = 0x001D
COREONE = 0x001F


@unique
Expand Down
9 changes: 9 additions & 0 deletions lib/Prusa-Error-Codes/tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ def test_MK35S(self):
assert code.message
assert code.id

def test_COREONE(self):
code = PrinterCodes.get("31701")
assert code.printer == Printer.COREONE
assert code.category == Category(7)
assert code.error == 1
assert code.title
assert code.message
assert code.id

def test_no_MK35S(self):
"""MK35S doesn't have puppies."""
code = PrinterCodes.get("28512")
Expand Down
Loading

0 comments on commit b6d3f24

Please sign in to comment.