Merge pull request #3609 from lbryio/pin_scribe
CI: pin scribe, fix exchange rate manager test
This commit is contained in:
commit
d0e715feb9
3 changed files with 3 additions and 2 deletions
2
setup.py
2
setup.py
|
@ -69,7 +69,7 @@ setup(
|
|||
'jsonschema==4.4.0',
|
||||
],
|
||||
'scribe': [
|
||||
'scribe @ git+https://github.com/lbryio/scribe.git#311db529a03de7fce43ed8579f51ac23a1a884ea'
|
||||
'scribe @ git+https://github.com/lbryio/scribe.git@311db529a03de7fce43ed8579f51ac23a1a884ea'
|
||||
]
|
||||
},
|
||||
classifiers=[
|
||||
|
|
|
@ -24,7 +24,7 @@ class TestExchangeRateManager(AsyncioTestCase):
|
|||
self.assertLessEqual(len(failures), 1, f"feed failures: {failures}. Please check exchange rate feeds!")
|
||||
lbc = manager.convert_currency('USD', 'LBC', Decimal('1.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'))
|
||||
self.assertGreaterEqual(lbc, 1_000)
|
||||
self.assertLessEqual(lbc, 20_000)
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -1,4 +1,5 @@
|
|||
[testenv]
|
||||
usedevelop = true
|
||||
deps =
|
||||
coverage
|
||||
extras =
|
||||
|
|
Loading…
Reference in a new issue