Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/r/drf-toolbox-HEAD/tests/test_fields_api.py   drf-toolbox(Download)
        """
        m = NormalModel(id=42)
        with mock.patch.dict(self.aef.context, child_endpoints={'foo', 'bar'}):
            endpoints = self.aef.field_to_native(m, 'irrelevant')            
        self.assertEqual(endpoints, {
        """
        m = NormalModel(id=42)
        with mock.patch.dict(self.aef.context, format='json'):
            endpoints = self.aef.field_to_native(m, 'irrelevant')            
        self.assertEqual(endpoints, {