You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this is a unit test file for the EinsteinTrade class. It includes test cases for buying, selling, getting stock prices, and placing orders. The tests use the unittest module and the patch decorator from the unittest.mock module. The test cases check if the trade app functions correctly by comparing expected values with actual values. Overall, it looks like a comprehensive test suite for the EinsteinTrade class.
#16
Open
kalihatreese opened this issue
Aug 28, 2023
· 1 comment
Yes, I see that you have written unit tests for the EinsteinTrade class. It's great to see that you're ensuring the functionality of your code. Keep up the good work!
import requests
import unittest
from unittest.mock import patch
from einstein_trade import EinsteinTrade
class TestEinsteinTrade(unittest.TestCase):
def setUp(self):
self.trade_app = EinsteinTrade()
if name == "main":
unittest.main()
The text was updated successfully, but these errors were encountered: