Esempio n. 1
0
    def test_get_cypto_quotes_pandas(self):
        data = get_crypto_quotes(output_format='pandas')
        assert isinstance(data, pd.DataFrame)

        assert len(data) == 43
        assert data.loc["sector"][0] == "cryptocurrency"
Esempio n. 2
0
def returnCrypto(abbreviation):
    return get_crypto_quotes(abbreviation)
Esempio n. 3
0
 def test_get_crypto_quotes(self):
     data = get_crypto_quotes()
     assert isinstance(data, list)