poetry icon indicating copy to clipboard operation
poetry copied to clipboard

test: fix test due to changes in poetry-core

Open finswimmer opened this issue 1 year ago • 1 comments

Related to https://github.com/python-poetry/poetry-core/pull/805

Pull Request Check List

Resolves: #issue-number-here

  • [ ] Added tests for changed code.
  • [ ] Updated documentation for changed code.

Summary by Sourcery

Tests:

  • Update tests to accommodate the format field added to includes and packages.

finswimmer avatar Jan 08 '25 05:01 finswimmer

Reviewer's Guide by Sourcery

This PR updates the tests to accommodate changes introduced in poetry-core. Specifically, it adds the "format" field to includes and packages in the test data.

Class diagram showing updated test data structure

classDiagram
    class TestData {
        +includes
        +packages
    }
    class Include {
        +format: str
        +other_fields
    }
    class Package {
        +format: str
        +other_fields
    }
    TestData --> Include: contains
    TestData --> Package: contains
    note for Include "New format field added"
    note for Package "New format field added"

File-Level Changes

Change Details Files
Update tests to include the format field
  • Added "format" field to packages and includes in test_create_poetry_with_packages_and_includes test case
tests/test_factory.py
Update poetry-core dependency
  • Updated poetry-core dependency to use the main branch from GitHub
pyproject.toml
poetry.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

  • Contact our support team for questions or feedback.
  • Visit our documentation for detailed guides and information.
  • Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.

sourcery-ai[bot] avatar Jan 08 '25 05:01 sourcery-ai[bot]

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 09 '25 00:02 github-actions[bot]