How to use the aioresponses.compat._vanilla_merge_url_params function in aioresponses

To help you get started, we’ve selected a few aioresponses examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pnuckowski / aioresponses / tests / test_compat.py View on Github external
        _vanilla_merge_url_params,
        _yarl_merge_url_params
    )
    def test_base_without_params_returns_corrected_url(self, func):
        if func in self._get_merge_functions():
            expected_url = 'http://example.com/api?x=42#fragment'
            self.assertEqual(
                func(self.url_without_parameters, {'x': 42}),
                expected_url
            )
github pnuckowski / aioresponses / tests / test_compat.py View on Github external
def _get_merge_functions(self):
        if yarl_available:
            return {
                _vanilla_merge_url_params,
                _yarl_merge_url_params
            }
        return {
            _vanilla_merge_url_params,
        }