Skip to content

Commit

Permalink
Update test for tempfile using
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmysitu committed Aug 20, 2024
1 parent 81572a6 commit 0ff6af1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_stocks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python3 -u

import tempfile
import sqlite3
from msfinance import stocks
import os
Expand All @@ -12,7 +13,7 @@

def test_stocks():
proxy = 'socks5://127.0.0.1:1088'
session='/tmp/msfinance/msf.db3'
session = os.path.join(tempfile.gettempdir(), 'msfinance', 'msf.db3')


if 'true' == os.getenv('GITHUB_ACTIONS'):
Expand All @@ -37,7 +38,7 @@ def test_stocks():

sp500_tickers = stock.get_sp500_tickers()
assert 'AAPL' in sp500_tickers

hsi_tickers = stock.get_hsi_tickers()
assert '00700' in hsi_tickers

Expand Down

0 comments on commit 0ff6af1

Please sign in to comment.