Skip to content

Tests for Issues #31

Description

@dwhswenson

As our Issue is primarily a wrapper for PyGithub's github.Issue, the best thing is to make use an instance of that to wrap most of our functionality. It looks like we just need to give the appropriate headers and attributes (which seem to be stored in github.Issue._headers and github.Issue._rawData, respectively, for actual issues). See GithubObject.__init__.

Needs are:

  • Test Issue that does have front matter, and one that does not
  • Mocks for the underlying _issue.get_timeline() method:
    • to handle "labeled" events
    • to handle "assigned" event
  • Tests for issue methods based on this test setup
  • Separate set of tests for all methods in NoIssue

We'll count on PyGithub's testing to ensure that calls to the GitHub API still work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions