Skip to content

Commit

Permalink
Update test_module.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOHuang5555 authored Dec 14, 2023
1 parent 3db5821 commit 04f1cde
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
# We do not have to enter api key when testing.
# os.environ['TEJAPI_KEY'] = os.environ.get('TQUANTLABTESTKEY')
print('test_file:', os.getenv('TEJAPI_KEY'))
print('test_file:', os.getenv('TEJAPI_BASE'))

import pytest
# import pytest

def pytest_configure(config):
os.environ['TEJAPI_KEY'] = os.environ.get('TQUANTLABTESTKEY')
# def pytest_configure(config):
# os.environ['TEJAPI_KEY'] = os.environ.get('TQUANTLABTESTKEY')

import sys
print(os.path.pardir)
sys.path.insert(0, os.path.pardir)
# 导入 TejToolAPI 模块
print(sys.path)

# import TejToolAPI
from TejToolAPI import get_history_data
from TejToolAPI import parameters as para
Expand Down

0 comments on commit 04f1cde

Please sign in to comment.