Skip to content

Comments

testing: declare a common fixture for mock EnergySite#22

Merged
kilroyd merged 1 commit intomainfrom
testing
Nov 15, 2025
Merged

testing: declare a common fixture for mock EnergySite#22
kilroyd merged 1 commit intomainfrom
testing

Conversation

@kilroyd
Copy link
Owner

@kilroyd kilroyd commented Nov 15, 2025

Change the main code to import netzero in such a way that we can mock it at a single location.

Now simplify the tests to use mock_energysite.

Remove banned import for tests, as we want to import mocks from confdata.py. We'll figure out how if we need to reorganise later. For now, it's nice to have the netzero mock setup in one place.

Change the main code to import netzero in such a way that we
can mock it at a single location.

Now simplify the tests to use mock_energysite.

Remove banned import for `tests`, as we want to import mocks
from confdata.py. We'll figure out how if we need to reorganise
later. For now, it's nice to have the netzero mock setup in one
place.
@kilroyd kilroyd merged commit efcbfaa into main Nov 15, 2025
5 checks passed
@kilroyd kilroyd deleted the testing branch November 15, 2025 20:42
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.

1 participant