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

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

src/t/e/tempodb-python-HEAD/tests/client/tests.py   tempodb-python(Download)
    def test_update_series(self):
        update = Series('id', 'key', 'name', {'key1': 'value1'}, ['tag1'])
        self.client.session.put.return_value = MockResponse(200, simplejson.dumps(update.to_json()))
 
        updated = self.client.update_series(update)
 
        self.client.session.put.assert_called_once_with(
            'https://example.com/v1/series/id/id/',
            auth=('key', 'secret'),
            data=simplejson.dumps(update.to_json()),

src/t/e/tempodb-python-HEAD/tests/base/series_tests.py   tempodb-python(Download)
    def test_to_json(self):
        series = Series('id', 'key', 'name', {'key1': 'value1'}, ['tag1', 'tag2'])
        json = series.to_json()
        expected = {
            'id': 'id',