1
0

Code and test quality
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 27s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 25s

This commit is contained in:
Jon Michael Aanes 2024-11-28 22:03:03 +01:00
parent ede1dcfbef
commit c2174b5081
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
3 changed files with 12 additions and 7 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
def test_init_main():
import crypto_seller.__main__ # noqa: F401

View File

@ -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