Skip to content

Commit 25a228c

Browse files
authored
Restore simple hash enum (#267)
AB#92329
1 parent 683f62a commit 25a228c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile-builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FROM python:${VERSION}-bookworm
77
# .github/workflows/python-package.yml
88
# .github/workflows/python-publish.yml
99
#
10-
ENV DEBIAN_FRONTEND noninteractive
10+
ENV DEBIAN_FRONTEND=noninteractive
1111

1212
RUN curl -fsSOL https://taskfile.dev/install.sh \
1313
&& sh install.sh \

archivist/proof_mechanism.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class ProofMechanism(Enum):
1717

1818
# previously used but now removed
1919
__RESERVED1 = 1
20-
__RESERVED2 = 2
20+
SIMPLE_HASH = 2
2121
#: Assets and events are proven using a merkle log hash of the originator's evidence
2222
MERKLE_LOG = 3

unittests/testproof_mechanism.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def test_proof_mechanism_reserved1(self):
3838
ProofMechanism.__RESERVED1.name, "__RESERVED1", msg="Incorrect value"
3939
)
4040

41-
def test_proof_mechanism_reserved2(self):
41+
def test_proof_mechanism_simple_hash(self):
4242
"""
4343
Test proof_mechanism
4444
"""
45-
with self.assertRaises(AttributeError):
46-
self.assertEqual(ProofMechanism.__RESERVED2.value, 2, msg="Incorrect value")
45+
self.assertEqual(ProofMechanism.SIMPLE_HASH.value, 2, msg="Incorrect value")
4746

48-
with self.assertRaises(AttributeError):
49-
self.assertEqual(
50-
ProofMechanism.__RESERVED2.name, "__RESERVED2", msg="Incorrect value"
51-
)
47+
self.assertEqual(
48+
ProofMechanism.SIMPLE_HASH.name,
49+
"SIMPLE_HASH",
50+
msg="Incorrect value",
51+
)

0 commit comments

Comments
 (0)