mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-20 19:42:45 +08:00
Add unit tests for factorial.py (#12815)
* Add unit tests for factorial.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * uvx --python=3.12 unittest2pytest --write test_factorial.py * Update error message in current_stock_price.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -23,7 +23,7 @@ Current ORCL stock price is 188.87
|
||||
def stock_price(symbol: str = "AAPL") -> str:
|
||||
"""
|
||||
>>> stock_price("EEEE")
|
||||
'- '
|
||||
'No <fin-streamer> tag with the specified data-testid attribute found.'
|
||||
>>> isinstance(float(stock_price("GOOG")),float)
|
||||
True
|
||||
"""
|
||||
|
Reference in New Issue
Block a user