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 ...@@ -15,7 +15,7 @@ import pandas.io.sql as psql
from ..tools.config_file_parser import ConfigParser from ..tools.config_file_parser import ConfigParser
from ..tools.connection import MyDB from ..tools.connection import MyDB
RUNNING_TOX = 'RUNTING_TOX' in os.environ RUNNING_TOX = 'RUNNING_TOX' in os.environ
class MdxEngine: class MdxEngine:
...@@ -121,7 +121,7 @@ class MdxEngine: ...@@ -121,7 +121,7 @@ class MdxEngine:
def _get_tables_name(self): def _get_tables_name(self):
""" """
get all tables names get all tables names
:return: list tables names :return: list tables names
""" """
return self.tables_loaded.keys() return self.tables_loaded.keys()
...@@ -318,7 +318,7 @@ class MdxEngine: ...@@ -318,7 +318,7 @@ class MdxEngine:
def _get_star_schema_dataframe(self, cube_name): def _get_star_schema_dataframe(self, cube_name):
""" """
merge all DataFrames as star schema merge all DataFrames as star schema
:param cube_name: cube name with which we want to generate a star schema model :param cube_name: cube name with which we want to generate a star schema model
:return: star schema DataFrame :return: star schema DataFrame
""" """
...@@ -358,7 +358,7 @@ class MdxEngine: ...@@ -358,7 +358,7 @@ class MdxEngine:
def get_cube(self): def get_cube(self):
""" """
get path to the cube (example /home_directory/your_user_name/olapy-data/cubes) get path to the cube (example /home_directory/your_user_name/olapy-data/cubes)
:return: path to the cube :return: path to the cube
""" """
return os.path.join(self.cube_path, self.cube) return os.path.join(self.cube_path, self.cube)
...@@ -367,27 +367,27 @@ class MdxEngine: ...@@ -367,27 +367,27 @@ class MdxEngine:
def get_tuples(self, query, start=None, stop=None): def get_tuples(self, query, start=None, stop=None):
""" """
get all tuples in the mdx query get all tuples in the mdx query
example: example:
SELECT {[Geography].[Geography].[All Continent].Members, SELECT {[Geography].[Geography].[All Continent].Members,
[Geography].[Geography].[Continent].[Europe] [Geography].[Geography].[Continent].[Europe]
} ON COLUMNS, } ON COLUMNS,
{[Product].[Product].[Company] {[Product].[Product].[Company]
} ON ROWS } ON ROWS
FROM {sales} FROM {sales}
It returns [ ['Geography','Geography','Continent'], It returns [ ['Geography','Geography','Continent'],
['Geography','Geography','Continent','Europe'], ['Geography','Geography','Continent','Europe'],
['Product','Product','Company'] ['Product','Product','Company']
] ]
:param query: mdx query :param query: mdx query
:param start: key-word in the query where we start (examples start = SELECT) :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) :param stop: key-word in the query where we stop (examples start = ON ROWS)
...@@ -417,7 +417,7 @@ class MdxEngine: ...@@ -417,7 +417,7 @@ class MdxEngine:
def decorticate_query(self, query): def decorticate_query(self, query):
""" """
get all tuples that exists in the MDX Query by axes get all tuples that exists in the MDX Query by axes
:param query: MDX Query :param query: MDX Query
:return: dict of axis as key and tuples as value :return: dict of axis as key and tuples as value
""" """
......
...@@ -19,18 +19,3 @@ Flask-WTF==0.12 ...@@ -19,18 +19,3 @@ Flask-WTF==0.12
plotly==1.12.9 plotly==1.12.9
XlsxWriter==0.9.3 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 ...@@ -15,7 +15,7 @@ from tests.xs0_responses import TEST_QUERY_AXIS0
HOST = "127.0.0.1" HOST = "127.0.0.1"
PORT = 8230 PORT = 8230
RUNNING_TOX = 'RUNTING_TOX' in os.environ RUNNING_TOX = 'RUNNING_TOX' in os.environ
class Member(object): class Member(object):
......
...@@ -4,11 +4,11 @@ envlist = py27 ...@@ -4,11 +4,11 @@ envlist = py27
[testenv] [testenv]
setenv= setenv=
RUNTING_TOX=true RUNNING_TOX=true
HOME_DIR = {homedir} HOME_DIR = {homedir}
whitelist_externals= whitelist_externals=
make make
commands= commands=
pip install -q -r requirements.txt pip install -q -r requirements.txt -r dev-requirements.txt
pytest tests pytest tests
make lint 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