Skip to content

Commit

Permalink
Merge pull request #173 from coveooss/fix/coveo-ref-resolve-mock-symbol
Browse files Browse the repository at this point in the history
remove this deprecated element before anyone uses it
  • Loading branch information
jonapich authored Oct 30, 2023
2 parents 2061705 + 9a9b5e8 commit 5456566
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions coveo-ref/coveo_ref/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,22 +269,6 @@ def _translate_reference_to_another_module(
return new_reference


def resolve_mock_target(target: Any) -> str:
"""
Deprecated: You are encouraged to use `ref` instead, which can resolve a name in a target module.
---
Deprecated docs:
`mock.patch` uses a str-representation of an object to find it, but this doesn't play well with
refactors and renames. This method extracts the str-representation of an object.
This method will not handle _all_ kinds of objects, in which case an AttributeError will most likely be raised.
"""
return f"{target.__module__}.{target.__name__}"


@overload
def ref(target: Any) -> Tuple[str]:
...
Expand Down

0 comments on commit 5456566

Please sign in to comment.