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

Factor out wingreg usage to simplify. #297

Merged

Conversation

DanAlbert
Copy link
Collaborator

Querying the registry in each caller made the test mocks quite messy. Factor that out so we can clean up the implementation and the tests. This also removes the "is standalone" and "is steam" APIs since those don't seem useful and they complicated the implementation. The other cleanup this makes easy is switching to the contextmanager OpenKey, which fixes the bug I found when writing the test in the previous PR.

@DanAlbert DanAlbert force-pushed the cleanup-installation-impl-and-tests branch 2 times, most recently from cb668f7 to c3d846b Compare May 9, 2023 06:57
@DanAlbert
Copy link
Collaborator Author

Most of the code here wasn't previously type checked because it declared no types, and that's why it's failing. I'll need to fix that too.

@DanAlbert DanAlbert force-pushed the cleanup-installation-impl-and-tests branch 5 times, most recently from b7914e0 to af62528 Compare May 10, 2023 02:47
Querying the registry in each caller made the test mocks quite messy.
Factor that out so we can clean up the implementation and the tests.
This also removes the "is standalone" and "is steam" APIs since those
don't seem useful and they complicated the implementation. The other
cleanup this makes easy is switching to the contextmanager OpenKey,
which fixes the bug I found when writing the test in the previous PR.
@DanAlbert DanAlbert force-pushed the cleanup-installation-impl-and-tests branch from af62528 to 97b58ae Compare May 10, 2023 02:49
@DanAlbert DanAlbert merged commit 98dffda into pydcs:master May 10, 2023
3 checks passed
@DanAlbert DanAlbert deleted the cleanup-installation-impl-and-tests branch May 10, 2023 02:51
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.

None yet

1 participant