Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translate cube #462

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

christian-proust
Copy link
Contributor

@christian-proust christian-proust commented Sep 19, 2018

The test tests.test_localization.LocalizationTestCase.test_translate_cube fails because the class Cube is now of immutable.

Christian Proust added 4 commits September 19, 2018 13:18
* The assertion can now take a type or a tuple of type in parameter.
* Fix wrong displayed error message in function assert_all_instances.
* Update docstring.
@@ -267,6 +273,7 @@ def __init__(self, name, dimensions=None, measures=None, aggregates=None,

# We don't need to access details by name
details = details or []
measures = _replace_all_dict_by_instance(measures, Attribute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall be details = _replace...?

@@ -258,6 +263,7 @@ def __init__(self, name, dimensions=None, measures=None, aggregates=None,
# Aggregates
#
aggregates = aggregates or []
measures = _replace_all_dict_by_instance(measures, MeasureAggregate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall be aggregates = _replace...?

@jjmontesl
Copy link
Contributor

I am a bit unsure about this PR. Does it aim to restore l18n functionality? Anyway, seems there are some issues, please have a looks at comments. Thanks.

@jjmontesl jjmontesl self-assigned this Jan 5, 2019
@jjmontesl jjmontesl added the bug label Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants