[tor-commits] [stem/master] Fix undefined enum

atagar at torproject.org atagar at torproject.org
Sun Nov 17 23:40:39 UTC 2019


commit 1b1b9113d9ddaf64b3a3b7e482b43ea7d57ca6ed
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Oct 12 13:56:47 2019 -0700

    Fix undefined enum
    
    ======================================================================
    ERROR: test_encode_decode_certificate
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/atagar/Desktop/stem/test/require.py", line 57, in wrapped
        return func(self, *args, **kwargs)
      File "/home/atagar/Desktop/stem/test/unit/descriptor/certificate.py", line 210, in test_encode_decode_certificate
        my_ed_cert = stem.descriptor.certificate.MyED25519Certificate(cert_type=CertType.HS_V3_DESC_SIGNING_KEY,
    AttributeError: 'Enum' object has no attribute 'HS_V3_DESC_SIGNING_KEY'
---
 test/unit/descriptor/certificate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/descriptor/certificate.py b/test/unit/descriptor/certificate.py
index 29a06b42..43a93f38 100644
--- a/test/unit/descriptor/certificate.py
+++ b/test/unit/descriptor/certificate.py
@@ -207,7 +207,7 @@ class TestEd25519Certificate(unittest.TestCase):
 
     expiration_date = datetime.datetime(2037, 8, 28, 17, 0)
 
-    my_ed_cert = stem.descriptor.certificate.MyED25519Certificate(cert_type=CertType.HS_V3_DESC_SIGNING_KEY,
+    my_ed_cert = stem.descriptor.certificate.MyED25519Certificate(cert_type=CertType.HS_V3_DESC_SIGNING,
                                                                   expiration_date=expiration_date,
                                                                   cert_key_type=1,
                                                                   certified_pub_key=certified_pub_key,





More information about the tor-commits mailing list