Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
69504bfe
Commit
69504bfe
authored
May 03, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test setting
parent
7c2c721d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
test_sql_engine.py
alphamind/tests/data/engines/test_sql_engine.py
+2
-1
test_suite.py
alphamind/tests/test_suite.py
+1
-0
No files found.
alphamind/tests/data/engines/test_sql_engine.py
View file @
69504bfe
...
...
@@ -17,6 +17,7 @@ from PyFin.api import bizDatesList
from
PyFin.api
import
CSRank
from
PyFin.api
import
CSQuantiles
from
alphamind.tests.test_suite
import
SKIP_ENGINE_TESTS
from
alphamind.tests.test_suite
import
DATA_ENGINE_URI
from
alphamind.data.dbmodel.models
import
Universe
as
UniverseTable
from
alphamind.data.dbmodel.models
import
Market
from
alphamind.data.dbmodel.models
import
IndexMarket
...
...
@@ -34,7 +35,7 @@ from alphamind.utilities import alpha_logger
class
TestSqlEngine
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
engine
=
SqlEngine
()
self
.
engine
=
SqlEngine
(
DATA_ENGINE_URI
)
dates_list
=
bizDatesList
(
'china.sse'
,
'2010-10-01'
,
'2018-04-27'
)
self
.
ref_date
=
random
.
choice
(
dates_list
)
.
strftime
(
'
%
Y-
%
m-
%
d'
)
alpha_logger
.
info
(
"Test date: {0}"
.
format
(
self
.
ref_date
))
...
...
alphamind/tests/test_suite.py
View file @
69504bfe
...
...
@@ -7,6 +7,7 @@ Created on 2017-4-25
SKIP_ENGINE_TESTS
=
True
DATA_ENGINE_URI
=
"postgres+psycopg2://postgres:we083826@localhost/alpha"
if
__name__
==
'__main__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment