Skip to content

testing with flask overwrites global Registry? #84

Closed Answered by hynek
gjcarneiro asked this question in Q&A
Discussion options

You must be logged in to vote

Container-local registries predate overwrite_value and they have different semantics so using it would be a breaking change.

I think the more correct way would be to deprecate overwrite_value and maybe in Flask's case (since it has global side-effects) add a new convenience API. But really, it's just svcs.flask.container.register_local_XXX(), no?

I'm not super-keen to add new APIs before settling #70, though.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gjcarneiro
Comment options

@hynek
Comment options

Answer selected by gjcarneiro
@gjcarneiro
Comment options

@hynek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants