Skip to content

Mocklib should be imported to avoid to repeat #66

@femtotrader

Description

@femtotrader

Hello,

I noticed that

if compat.is_py2:
    import mock as mocklib

if compat.is_py3:
    if compat.is_py32:
        import mock as mocklib
    else:
        from unittest import mock as mocklib

is both in https://github.com/femtotrader/datapackage/blob/master/tests/test_datapackage.py
and https://github.com/femtotrader/datapackage/blob/master/tests/test_resource.py

I think Mocklib should be imported in compat.py

https://en.wikipedia.org/wiki/Don%27t_repeat_yourself

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions