klebgenomics / Kleborate

GNU General Public License v3.0
117 stars 49 forks source link

test_shv_09 failure with version 2.4.0 on Debian sid #73

Closed emollier closed 10 months ago

emollier commented 11 months ago

Seasonal Greetings,

For information, when trying to package the newer kleborate 2.4.0 for Debian, I hit the following test failure:

FAIL: test_shv_09 (test.test_shv.TestShvMutations.test_shv_09)
This test has SHV-1 with a nonsynonymous mutation in the omega loop (so it is reported).
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/test/test_shv.py", line 118, in test_shv_09
    self.assertEqual(results['Bla_ESBL_acquired'], 'SHV-1* +174R')
AssertionError: '-' != 'SHV-1* +174R'
- -
+ SHV-1* +174R

Notably relevant software versions associated to the environment are:

Running the older kleborate 2.3.2 test suite in the same environment goes through without any failure. Since test_shv_09 has not changed from 2.3.2 to 2.4.0, this looks to be a regression.

Wishing you nevertheless a happy year, :) Étienne.

katholt commented 10 months ago

oops, sorry, this is because we modified SHV functionality in 2.4.0 but did not update the corresponding unit test. this has been fixed in release 2.4.1

emollier commented 10 months ago

Thank you for the fix, I'm currently integrating Kleborate 2.4.1 in Debian sid, and it all good. Have a nice day, :) Étienne.