Skip to content

Commit

Permalink
Refactor test folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Jun 13, 2020
1 parent 6d327d6 commit 8a3ec49
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

!requirements.txt

!tests
!test
!tcapy
!tcapy_notebooks
!tcapygen
Expand Down
20 changes: 10 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
setuptools-git==1.2
cython==0.29.13
arctic==1.79.2
sqlalchemy==1.3.7
sqlalchemy==1.3.17
redis==3.3.7
pymssql==2.1.4
pandas==0.24.2
numpy==1.16.4
scipy==1.3.1
statsmodels==0.10.1
pandas==0.25.3
numpy==1.18.5
scipy==1.4.1
statsmodels==0.11.1
tables==3.5.2
blosc==1.8.3
pyarrow==0.16.0
pathos==0.2.1
multiprocess==0.70.8
multiprocess==0.70.9
fastparquet==0.3.3
flask-restplus==0.13.0
gunicorn==19.9.0
Expand All @@ -22,15 +22,15 @@ psutil==5.6.3
matplotlib==3.1.1
boto3==1.5.11
pyodbc==4.0.23
pytest==5.1.0
pytest==5.4.3
pytest-cov==2.5.1
mysql-connector-python==8.0.19
IPython==7.13.0
IPython==7.14.0
chartpy==0.1.8
findatapy==0.1.11
dash-auth==1.3.2
cufflinks==0.17.3
plotly==4.8.0
plotly==4.8.1
chart-studio==1.1.0
dash==1.12.0
dash-html-components==1.0.3
Expand All @@ -46,7 +46,7 @@ kombu==4.6.7
python-memcached==1.59
numba==0.48.0
vispy==0.6.4
jinja2==2.11.1
jinja2==2.11.2
jupyterlab
jupyter_contrib_nbextensions
jupyter_nbextensions_configurator
Expand Down
4 changes: 2 additions & 2 deletions tcapy_notebooks/additional_benchmarks_metrics_for_tcapy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"\n",
"windows_tcapy_path = 'e:/cuemacro/tcapy' # Windows platform\n",
"linux_tcapy_path = '/home/tcapyuser/cuemacro/tcapy' # Linux platform\n",
"local_test_data_path = '../tests/resources/' # Windows platform\n",
"remote_test_data_path = '../tests/resources/' # WSL drive\n",
"local_test_data_path = '../test/resources/' # Windows platform\n",
"remote_test_data_path = '../test/resources/' # WSL drive\n",
"\n",
"# Assuming the front end is on Windows\n",
"sys.path.insert(0, windows_tcapy_path)"
Expand Down
4 changes: 2 additions & 2 deletions tcapy_notebooks/compliance_tca_calculations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"\n",
"windows_tcapy_path = 'e:/cuemacro/tcapy' # Windows platform\n",
"linux_tcapy_path = '/home/tcapyuser/cuemacro/tcapy' # Linux platform\n",
"local_test_data_path = '../tests/resources/' # Windows platform\n",
"remote_test_data_path = '../tests/resources/' # WSL drive\n",
"local_test_data_path = '../test/resources/' # Windows platform\n",
"remote_test_data_path = '../test/resources/' # WSL drive\n",
"\n",
"# Assuming the front end is on Linux\n",
"sys.path.insert(0, windows_tcapy_path)"
Expand Down
4 changes: 2 additions & 2 deletions tcapy_notebooks/introducing_tcapy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@
"\n",
"windows_tcapy_path = 'e:/cuemacro/tcapy' # Windows platform\n",
"linux_tcapy_path = '/home/tcapyuser/cuemacro/tcapy' # Linux platform\n",
"local_test_data_path = '../tests/resources/' # Windows platform\n",
"remote_test_data_path = '../tests/resources/' # WSL drive\n",
"local_test_data_path = '../test/resources/' # Windows platform\n",
"remote_test_data_path = '../test/resources/' # WSL drive\n",
"\n",
"# Assuming the front end is on Windows\n",
"sys.path.insert(0, windows_tcapy_path)"
Expand Down
4 changes: 2 additions & 2 deletions tcapy_notebooks/market_microstructure_with_tcapy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"\n",
"windows_tcapy_path = 'e:/cuemacro/tcapy' # Windows platform\n",
"linux_tcapy_path = '/home/tcapyuser/cuemacro/tcapy' # Linux platform\n",
"local_test_data_path = '../tests/resources/' # Windows platform\n",
"remote_test_data_path = '../tests/resources/' # WSL drive\n",
"local_test_data_path = '../test/resources/' # Windows platform\n",
"remote_test_data_path = '../test/resources/' # WSL drive\n",
"\n",
"# Assuming the front end is on Windows\n",
"sys.path.insert(0, windows_tcapy_path)"
Expand Down
4 changes: 2 additions & 2 deletions tcapy_notebooks/populating_databases_for_tcapy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"\n",
"windows_tcapy_path = 'e:/cuemacro/tcapy' # Windows platform\n",
"linux_tcapy_path = '/home/tcapyuser/cuemacro/tcapy' # Linux platform\n",
"local_test_data_path = '../tests/resources/' # Windows platform\n",
"remote_test_data_path = '../tests/resources/' # WSL drive\n",
"local_test_data_path = '../test/resources/' # Windows platform\n",
"remote_test_data_path = '../test/resources/' # WSL drive\n",
"\n",
"# For dumping market data files\n",
"# Assuming Windows platform (you might have to change these paths)\n",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/conftest.py → test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from tcapy.data.databasesource import DatabaseSourceMySQL, DatabaseSourceArctic

from tests.config import *
from test.config import *

logger = LoggerManager().getLogger(__name__)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from tcapy.util.mediator import Mediator
from tcapy.util.customexceptions import *

from tests.config import *
from test.config import *

logger = LoggerManager().getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from tcapy.data.databasepopulator import DatabasePopulatorNCFX, DatabasePopulatorDukascopy
from tcapy.data.databasesource import DatabaseSourceNCFX, DatabaseSourceDukascopy

from tests.config import *
from test.config import *

logger = LoggerManager().getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from collections import OrderedDict

from tests.config import *
from test.config import *

constants = Constants()
logger = LoggerManager().getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from tcapy.analysis.algos.resultssummary import ResultsSummary

from tests.config import *
from test.config import *

logger = LoggerManager().getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from tcapy.vis.tcaresults import TCAResults
from tcapy.vis.report.tcareport import TCAReport

from tests.config import *
from test.config import *

constants = Constants()
logger = LoggerManager().getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from tcapy.analysis.tcaengine import TCARequest, TCAEngineImpl

from tests.config import *
from test.config import *

########################################################################################################################
# YOU MAY NEED TO CHANGE TESTING PARAMETERS IF YOUR DATABASE DOESN'T COVER THESE DATES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from tcapy.util.customexceptions import *

from tests.config import *
from test.config import *

ticker = 'EURUSD'
start_date = '20 Apr 2017'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

use_market_data_test_csv = True

from tests.config import *
from test.config import *

logger.info('Make sure you have created folder ' + constants.csv_folder + ' & ' + constants.temp_data_folder +
' otherwise tests will fail')
Expand Down
Empty file removed tests/__init__.py
Empty file.
Empty file removed tests/test_tcapy/__init__.py
Empty file.

0 comments on commit 8a3ec49

Please sign in to comment.