Skip to content

Refactor: extract duplicated code and reorder tests#143

Merged
elliot-100 merged 2 commits intoOlen:mainfrom
elliot-100:142-tech-debt-and-refactors
Aug 2, 2024
Merged

Refactor: extract duplicated code and reorder tests#143
elliot-100 merged 2 commits intoOlen:mainfrom
elliot-100:142-tech-debt-and-refactors

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
@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

Comments