Code and test quality
This commit is contained in:
parent
ede1dcfbef
commit
c2174b5081
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
from secret_loader import SecretLoader
|
from secret_loader import SecretLoader
|
||||||
|
|
||||||
__all__ = ['KUCOIN_KEY', 'KUCOIN_SECRET', 'KUCOIN_PASS']
|
__all__ = [
|
||||||
|
'KUCOIN_KEY',
|
||||||
|
'KUCOIN_PASS',
|
||||||
|
'KUCOIN_SECRET',
|
||||||
|
]
|
||||||
|
|
||||||
secret_loader = SecretLoader()
|
secret_loader = SecretLoader()
|
||||||
|
|
||||||
|
|
2
test/test_init.py
Normal file
2
test/test_init.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
def test_init_main():
|
||||||
|
import crypto_seller.__main__ # noqa: F401
|
|
@ -1,7 +1,6 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def test_secrets():
|
def test_secrets():
|
||||||
try:
|
with pytest.raises(ValueError, match='Failed to load secret with key:.*'):
|
||||||
import crypto_seller.secrets_config
|
import crypto_seller.secrets_config # noqa: F401
|
||||||
except ModuleNotFoundError:
|
|
||||||
raise
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user