You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It also doesn't receive a 'finder' object as per get_finders - it's a callable with its own calling convention.
Tests that follow a different code path to real-world code are of questionable usefulness - we should rewrite them, perhaps by using mocks or override_settings to pass in the single finder being tested in place of the result of get_finders.
The text was updated successfully, but these errors were encountered:
The
finders
kwarg onget_embed
is undocumented and only used in tests:wagtail/wagtail/embeds/embeds.py
Line 12 in 2b8049f
It also doesn't receive a 'finder' object as per
get_finders
- it's a callable with its own calling convention.Tests that follow a different code path to real-world code are of questionable usefulness - we should rewrite them, perhaps by using mocks or
override_settings
to pass in the single finder being tested in place of the result ofget_finders
.The text was updated successfully, but these errors were encountered: