Ejemplo n.º 1
0
 def test_current_stock_price(self, ticker_object, user_ticker):
     statistics_data = stats.get_stock_statistics(ticker_object)
     assert 'currentPrice' in statistics_data[
         user_ticker], "I do not see 'currentPrice' in the statiscial data frame"
Ejemplo n.º 2
0
 def test_stock_statistical_data_returned(self, ticker_object):
     statistics_data = stats.get_stock_statistics(ticker_object)
     assert statistics_data is not None, "Stocks statistical data did not return anything"
Ejemplo n.º 3
0
 def test_profit_margins(self, ticker_object, user_ticker):
     statistics_data = stats.get_stock_statistics(ticker_object)
     assert 'profitMargins' in statistics_data[
         user_ticker], "I do not see 'profitMargins' in the statiscial data frame"
Ejemplo n.º 4
0
 def test_return_on_equity(self, ticker_object, user_ticker):
     statistics_data = stats.get_stock_statistics(ticker_object)
     assert 'returnOnEquity' in statistics_data[
         user_ticker], "I do not see 'returnOnEquity' in the statiscial data frame"
Ejemplo n.º 5
0
 def test_debt_to_equity(self, ticker_object, user_ticker):
     statistics_data = stats.get_stock_statistics(ticker_object)
     assert 'debtToEquity' in statistics_data[
         user_ticker], "I do not see 'debtToEquity' in the statiscial data frame"
Ejemplo n.º 6
0
 def test_statistical_data_returned(self, ticker_object):
     stat_data = stats.get_stock_statistics(ticker_object)
     assert stat_data is not None, "There was no statistics returned"