eu-digital-green-certificates / dgc-testdata

Repository for storing generated QR code data for testing.
Apache License 2.0
157 stars 218 forks source link

LT: test_cose_json / test_cbor_json failure #341

Closed daniel-eder closed 3 years ago

daniel-eder commented 3 years ago

File: LT/2DCode/raw/2.json

tests/test_ehealth_certs.py:310: in test_cose_json
    assert any([_ordered(hcert) == _ordered(config_env[JSON]),
E   assert False
E    +  where False = any([False, False])
tests/test_ehealth_certs.py:328: in test_cbor_json
    assert any([_ordered(cbor_object) == _ordered(config_env[JSON]),
E   assert False
E    +  where False = any([False, False])
bhavin-qryptal commented 3 years ago

@daniel-eder , This ticket could be closed now. I have fixed test script to ignore microsecond value while comparing COSE , CBOR and JSON payload. Reference: https://github.com/eu-digital-green-certificates/dgc-testdata/pull/358