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

expose get_registry() method #476

Merged
merged 4 commits into from Jan 28, 2022

Conversation

beliaev-maksim
Copy link
Collaborator

@beliaev-maksim beliaev-maksim commented Jan 14, 2022

closes #475

@markstory
we can consider backing up _get_registry() and complimenting it with get_registry() or just replacing the method

basically, it is an internal API now, so we can go straight with replacement, or we just do it extra safe

@codecov
Copy link

codecov bot commented Jan 14, 2022

Codecov Report

Merging #476 (565b4d5) into master (9e17e89) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #476   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines         2067      2067           
=========================================
  Hits          2067      2067           
Impacted Files Coverage Δ
responses/__init__.py 100.00% <100.00%> (ø)
responses/test_registries.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e17e89...565b4d5. Read the comment docs.

@@ -482,20 +482,26 @@ Example that shows how to set custom registry
pass


print("Before tests:", responses.mock.get_registry())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get these removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can, but why?

I think this is a good example to show how to check registry type

@markstory
Copy link
Member

Looks good but there are some conflicts that need to be fixed up.

@markstory markstory merged commit ee46f92 into getsentry:master Jan 28, 2022
@beliaev-maksim beliaev-maksim deleted the public_get_reg branch January 28, 2022 15:26
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.

CustomRegistry - improve reset() availability
2 participants