Module ImportFrom alias alias Import alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore ListLoad Str Str Assert CompareEq Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assert CompareEq Call NameLoad keyword Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assert CompareEq Call NameLoad keyword Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assert CompareEq Call NameLoad keyword Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assert CompareEq Call NameLoad keyword Str keyword Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assert CompareEq Call NameLoad keyword Str keyword Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad keyword Str ListLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad keyword Str ListLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad keyword NameLoad ListLoad decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad NameLoad body With Call NameLoad Str NameStore body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad BinOpAdd Str NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list
N/A mock patch Mock N/A pytest pyembed.core discovery test_should_find_oembed_urls N/A N/A N/A N/A N/A expected_urls N/A http://example.com/oembed?format=json http://example.com/oembed?format=xml N/A N/A N/A get_oembed_urls expected_urls N/A test_should_find_oembed_urls_using_json_when_specified N/A N/A N/A N/A N/A expected_url http://example.com/oembed?format=json N/A N/A N/A get_oembed_urls oembed_format json N/A expected_url N/A test_should_find_oembed_urls_using_xml_when_specified N/A N/A N/A N/A N/A expected_url http://example.com/oembed?format=xml N/A N/A N/A get_oembed_urls oembed_format xml N/A expected_url N/A test_should_return_xml_if_json_not_present N/A N/A N/A N/A N/A expected_url http://example.com/oembed?format=xml N/A N/A N/A get_oembed_urls fixture no_json_oembed.html N/A expected_url N/A test_should_find_oembed_urls_using_json_with_relative_url N/A N/A N/A N/A N/A expected_url http://example.com/oembed?format=json N/A N/A N/A get_oembed_urls fixture relative_url.html oembed_format json N/A expected_url N/A test_should_find_oembed_urls_using_xml_with_relative_url N/A N/A N/A N/A N/A expected_url http://example.com/oembed?format=xml N/A N/A N/A get_oembed_urls fixture relative_url.html oembed_format xml N/A expected_url N/A test_should_return_empty_if_href_not_present N/A N/A N/A N/A N/A N/A N/A get_oembed_urls fixture json_oembed_no_href.html N/A N/A test_should_return_empty_for_invalid_html N/A N/A N/A N/A N/A N/A N/A get_oembed_urls fixture invalid.html N/A N/A test_should_return_empty_on_error_response N/A N/A N/A N/A N/A N/A N/A get_oembed_urls ok False N/A N/A test_should_throw_error_when_invalid_oembed_format_specified N/A N/A N/A N/A N/A N/A N/A pytest raises N/A discovery PyEmbedDiscoveryError N/A N/A N/A get_oembed_urls oembed_format txt N/A get_oembed_urls N/A N/A fixture oembed_format ok N/A valid_oembed.html None True N/A N/A N/A patch requests.get mock_get N/A N/A response N/A Mock N/A N/A response ok ok N/A N/A response text N/A N/A N/A open N/A pyembed/core/test/fixtures/auto_discovery/ fixture read N/A N/A mock_get return_value response N/A result N/A list N/A N/A N/A N/A discovery AutoDiscoverer get_oembed_urls http://example.com oembed_format N/A N/A N/A mock_get assert_called_with http://example.com N/A result N/A