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

Refactor: extract duplicated code and reorder tests #143

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

elliot-100
Copy link
Collaborator

@elliot-100 elliot-100 commented Jul 11, 2024

This PR:

  • refactors out common code from Spond.get_event() and Spond.get_group() methods to a non-public Spond._get_entity() method.
    @dhomeier note that I have not yet touched the similar event lookup in update_event(), I know you are looking at this method in your Fix update_events for nonexistent IDs and support creation of new events #134.

  • refactors the Spond test suite into separate classes for Event, Group and export related methods.

I may add more (which is why the heading is so general), so will keep this in draft for now.

…roup()` to non-public `Spond._get_entity()'
@elliot-100 elliot-100 marked this pull request as ready for review July 26, 2024 12:01
@elliot-100 elliot-100 changed the title Refactors Refactor: extract duplicated code and reorder tests Jul 26, 2024
@elliot-100 elliot-100 self-assigned this Jul 26, 2024
@elliot-100
Copy link
Collaborator Author

I think best if I merge this as is, as it should make other fixes and improvements easier. Any objections?

@elliot-100 elliot-100 merged commit 7fa6326 into Olen:main Aug 2, 2024
5 checks passed
@elliot-100 elliot-100 deleted the 142-tech-debt-and-refactors branch August 2, 2024 09:35
@elliot-100 elliot-100 linked an issue Aug 15, 2024 that may be closed by this pull request
@elliot-100 elliot-100 added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tech debt and refactors
1 participant