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

Add tests #1

Merged
merged 6 commits into from
Feb 16, 2023
Merged

Conversation

theipster
Copy link

I took the liberty of removing the squash_enforced property (in order to a) reduce the footprint of the Project class; and b) to simplify the mocking), and replaced the "encapsulation" with an enum.

Also had to fix some pip dependencies, otherwise the CI test suites wouldn't run at all.

See https://stackoverflow.com/a/73932581. It seems like
importlib-metadata is only required for tests, not production code.
…mplify mocking)

the only API calls made in marge-bot are `/projects` (with `simple`
undefined) and `/projects/:id`, and both responses always contain the
`squash_option` field

to limit the scope of validation outside `Project`, convert
`squash_option` into an enum
also rename test to reflect wanting vs needing to squash
@anuragagarwal561994
Copy link
Owner

@theipster LGTM, just wanted to understand the pip fix that we have done here in a little bit detail

@anuragagarwal561994 anuragagarwal561994 merged commit 3108ecf into anuragagarwal561994:squash-fix Feb 16, 2023
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.

2 participants