From 950ea9cb45b0735c324b147be6fb29272e220114 Mon Sep 17 00:00:00 2001 From: Julian Perez Ramirez Date: Wed, 20 Nov 2024 15:48:57 +0100 Subject: [PATCH] adding test to web_programming/current_stock_price --- web_programming/current_stock_price.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web_programming/current_stock_price.py b/web_programming/current_stock_price.py index ed760dfa3..3de7420f6 100644 --- a/web_programming/current_stock_price.py +++ b/web_programming/current_stock_price.py @@ -3,6 +3,16 @@ from doctest import testmod from bs4 import BeautifulSoup from requests import get +""" +Get the HTML code of finance yahoo and select the current qsp-price +Current AAPL stock price is 228.43 +Current AMZN stock price is 201.85 +Current IBM stock price is 210.30 +Current GOOG stock price is 177.86 +Current MSFT stock price is 414.82 +Current ORCL stock price is 188.87 +""" + def stock_price(symbol: str = "AAPL") -> str: """