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

Support get_state namespaces #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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