Merge pull request #3609 from lbryio/pin_scribe

CI: pin scribe, fix exchange rate manager test
This commit is contained in:
Victor Shyba 2022-05-11 21:13:00 -03:00 committed by GitHub
commit d0e715feb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -69,7 +69,7 @@ setup(
'jsonschema==4.4.0', 'jsonschema==4.4.0',
], ],
'scribe': [ 'scribe': [
'scribe @ git+https://github.com/lbryio/scribe.git#311db529a03de7fce43ed8579f51ac23a1a884ea' 'scribe @ git+https://github.com/lbryio/scribe.git@311db529a03de7fce43ed8579f51ac23a1a884ea'
] ]
}, },
classifiers=[ classifiers=[

View file

@ -24,7 +24,7 @@ class TestExchangeRateManager(AsyncioTestCase):
self.assertLessEqual(len(failures), 1, f"feed failures: {failures}. Please check exchange rate feeds!") self.assertLessEqual(len(failures), 1, f"feed failures: {failures}. Please check exchange rate feeds!")
lbc = manager.convert_currency('USD', 'LBC', Decimal('1.0')) lbc = manager.convert_currency('USD', 'LBC', Decimal('1.0'))
self.assertGreaterEqual(lbc, 2.0) self.assertGreaterEqual(lbc, 2.0)
self.assertLessEqual(lbc, 60.0) self.assertLessEqual(lbc, 80.0)
lbc = manager.convert_currency('BTC', 'LBC', Decimal('0.01')) lbc = manager.convert_currency('BTC', 'LBC', Decimal('0.01'))
self.assertGreaterEqual(lbc, 1_000) self.assertGreaterEqual(lbc, 1_000)
self.assertLessEqual(lbc, 20_000) self.assertLessEqual(lbc, 20_000)

View file

@ -1,4 +1,5 @@
[testenv] [testenv]
usedevelop = true
deps = deps =
coverage coverage
extras = extras =