Commit cd504197 authored by Stefane Fermigier's avatar Stefane Fermigier

Fix typo on variable name.

parent 68658139
......@@ -15,7 +15,7 @@ import pandas.io.sql as psql
from ..tools.config_file_parser import ConfigParser
from ..tools.connection import MyDB
RUNNING_TOX = 'RUNTING_TOX' in os.environ
RUNNING_TOX = 'RUNNING_TOX' in os.environ
class MdxEngine:
......@@ -121,7 +121,7 @@ class MdxEngine:
def _get_tables_name(self):
"""
get all tables names
:return: list tables names
"""
return self.tables_loaded.keys()
......@@ -318,7 +318,7 @@ class MdxEngine:
def _get_star_schema_dataframe(self, cube_name):
"""
merge all DataFrames as star schema
:param cube_name: cube name with which we want to generate a star schema model
:return: star schema DataFrame
"""
......@@ -358,7 +358,7 @@ class MdxEngine:
def get_cube(self):
"""
get path to the cube (example /home_directory/your_user_name/olapy-data/cubes)
:return: path to the cube
"""
return os.path.join(self.cube_path, self.cube)
......@@ -367,27 +367,27 @@ class MdxEngine:
def get_tuples(self, query, start=None, stop=None):
"""
get all tuples in the mdx query
example:
SELECT {[Geography].[Geography].[All Continent].Members,
[Geography].[Geography].[Continent].[Europe]
} ON COLUMNS,
{[Product].[Product].[Company]
} ON ROWS
FROM {sales}
It returns [ ['Geography','Geography','Continent'],
['Geography','Geography','Continent','Europe'],
['Product','Product','Company']
]
:param query: mdx query
:param start: key-word in the query where we start (examples start = SELECT)
:param stop: key-word in the query where we stop (examples start = ON ROWS)
......@@ -417,7 +417,7 @@ class MdxEngine:
def decorticate_query(self, query):
"""
get all tuples that exists in the MDX Query by axes
:param query: MDX Query
:return: dict of axis as key and tuples as value
"""
......
......@@ -19,18 +19,3 @@ Flask-WTF==0.12
plotly==1.12.9
XlsxWriter==0.9.3
# Tools / dev / testing
tox<3
pytest<4
pytest-cov
xmla
pip-tools
flake8
flake8-tidy-imports
mccabe
isort
yapf
pylint
PrettyTable
py-cpuinfo
gprof2dot
\ No newline at end of file
......@@ -15,7 +15,7 @@ from tests.xs0_responses import TEST_QUERY_AXIS0
HOST = "127.0.0.1"
PORT = 8230
RUNNING_TOX = 'RUNTING_TOX' in os.environ
RUNNING_TOX = 'RUNNING_TOX' in os.environ
class Member(object):
......
......@@ -4,11 +4,11 @@ envlist = py27
[testenv]
setenv=
RUNTING_TOX=true
RUNNING_TOX=true
HOME_DIR = {homedir}
whitelist_externals=
make
commands=
pip install -q -r requirements.txt
pip install -q -r requirements.txt -r dev-requirements.txt
pytest tests
make lint
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment