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

Fixed Subclassing Dict Issues (Issue #101) #102

Merged
merged 4 commits into from
Aug 23, 2018

Conversation

MisterVladimir
Copy link
Contributor

Dict subclasses' child nodes are now reflect the expected behavior that they're instances of that subclass instead of Dicts. Without this change, daughter nodes of subclass instances raise Attribute or other errors.

Added tests appropriate for these changes. 100% of tests passed.

See #101

Previously, when child classes were instantiated, all their nodes -- besides the top node -- remained instances of the parent (Dict) class.

Added tests appropriate for these changes. All tests passed.

See mewwts#101
@mewwts
Copy link
Owner

mewwts commented Aug 22, 2018

Hey @MisterVladimir,

if the tests pass locally, but not on Travis I think it might be because you run the tests locally like python setup.py test while at Travis they're run using the py.test runner.

See:

- "py.test"

Tests can be run with "python setup.py test" instead of manually "python -m test_addict.py".
@coveralls
Copy link

coveralls commented Aug 22, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 7cfdbab on MisterVladimir:master into 1a9b80b on mewwts:master.

MisterVladimir added 2 commits August 22, 2018 10:30
Changed "super()" for Python 2.7 compatibility.
Apparently one shouldn't use super(self.__class___, self).

All tests now pass with "python setup.py test".
@mewwts
Copy link
Owner

mewwts commented Aug 23, 2018

Thanks @MisterVladimir!

@mewwts mewwts merged commit 3591a7f into mewwts:master Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants