Skip to content

Conversation

@bogdal
Copy link

@bogdal bogdal commented Aug 30, 2022

This PR introduces namespaces to the mocked states. It helps to test applications that use User Definied Namespaces as persistent storage.

An example:

given_that.state_of("light.kitchen", namespace="storage").is_set_to(
    'on', attributes={"last_used_preset": "dark"}
)

...
self.get_state("light.kitchen", attribute="last_used_preset", namespace="storage")

@HelloThisIsFlo
Copy link
Owner

Hi Adam,

Thanks for your PR!

Unfortunately, I have a lot of things going on at the moment and I have no time to maintain this repo 😕. I do plan to catch up at some point, but I don't exactly know when that will happen, it's not at the top of my priority list at the moment.

Best,
Flo

@bogdal
Copy link
Author

bogdal commented Oct 6, 2022

Hey Florian,

thanks for letting me know, I appreciate it. I totally understand this situation. See you sooner or later 👍

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