Skip to content

Commit

Permalink
Use _dt as datetime package import
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiche committed Aug 8, 2024
1 parent b35cd87 commit 5bee777
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_prices.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import datetime
import datetime as _dt
import os
import unittest
Expand Down Expand Up @@ -49,7 +48,7 @@ def test_download_multi_large_interval(self):
def test_download_multi_small_interval(self):
use_tkrs = ["AAPL", "0Q3.DE", "ATVI"]
df = yf.download(use_tkrs, period="1d", interval="5m")
self.assertEqual(df.index.tz, datetime.timezone.utc)
self.assertEqual(df.index.tz, _dt.timezone.utc)

def test_download_with_invalid_ticker(self):
#Checks if using an invalid symbol gives the same output as not using an invalid symbol in combination with a valid symbol (AAPL)
Expand Down

0 comments on commit 5bee777

Please sign in to comment.