How to use the pydriller.domain.developer.Developer function in PyDriller

To help you get started, we’ve selected a few PyDriller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ishepard / pydriller / tests / test_developer.py View on Github external
def test_eq_dev():
    d1 = Developer("Davide", "s.d@gmail.com")
    d2 = Developer("Davide", "s.d@gmail.com")
    d3 = Developer("Davide", "s.d@gmail.eu")
    d4 = None

    assert d1 == d1
    assert d1 == d2
    assert d1 != d3
    assert d1 != d4
github ishepard / pydriller / tests / test_developer.py View on Github external
def test_eq_dev():
    d1 = Developer("Davide", "s.d@gmail.com")
    d2 = Developer("Davide", "s.d@gmail.com")
    d3 = Developer("Davide", "s.d@gmail.eu")
    d4 = None

    assert d1 == d1
    assert d1 == d2
    assert d1 != d3
    assert d1 != d4
github ishepard / pydriller / tests / test_developer.py View on Github external
def test_eq_dev():
    d1 = Developer("Davide", "s.d@gmail.com")
    d2 = Developer("Davide", "s.d@gmail.com")
    d3 = Developer("Davide", "s.d@gmail.eu")
    d4 = None

    assert d1 == d1
    assert d1 == d2
    assert d1 != d3
    assert d1 != d4
github ishepard / pydriller / pydriller / domain / developer.py View on Github external
def __eq__(self, other):
        if not isinstance(other, Developer):
            return NotImplemented
        elif self is other:
            return True
        else:
            return self.__dict__ == other.__dict__
github ishepard / pydriller / pydriller / domain / commit.py View on Github external
def committer(self) -> Developer:
        """
        Return the committer of the commit as a Developer object.

        :return: committer
        """
        return Developer(self._c_object.committer.name,
                         self._c_object.committer.email)
github ishepard / pydriller / pydriller / domain / commit.py View on Github external
def author(self) -> Developer:
        """
        Return the author of the commit as a Developer object.

        :return: author
        """
        return Developer(self._c_object.author.name,
                         self._c_object.author.email)