forked from LBRYCommunity/lbry-sdk
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',
|
'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=[
|
||||||
|
|
|
@ -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)
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -1,4 +1,5 @@
|
||||||
[testenv]
|
[testenv]
|
||||||
|
usedevelop = true
|
||||||
deps =
|
deps =
|
||||||
coverage
|
coverage
|
||||||
extras =
|
extras =
|
||||||
|
|
Loading…
Reference in a new issue