Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #12 from k0s/master

add documentation on DatazillaRequest.datasets()
  • Loading branch information...
commit de84ef1e9e246575916d20cd2a04b36491ca0974 2 parents 0c6055c + c38e8f0
Malini Das malini authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 README.md
9 README.md
Source Rendered
@@ -7,11 +7,11 @@ Usage
7 7 -----
8 8
9 9 from dzclient import DatazillaRequest, DatazillaResult
10   -
  10 +
11 11 res = DatazillaResult()
12 12 res.add_testsuite("suite_name", {"test_name": [1, 2, 3]})
13 13 res.add_test_results("suite_name", "another_test", [2, 3, 4])
14   -
  14 +
15 15 req = DatazillaRequest(
16 16 host="datazilla.mozilla.org",
17 17 project="project",
@@ -45,6 +45,11 @@ send, you can still use `DatazillaRequest` to send it:
45 45 data_to_send = ...
46 46 req.send(data_to_send)
47 47
  48 +You may also introspect the data to be sent by the `DatazillaRequest`:
  49 +
  50 + req.datasets()
  51 + [{'test_machine': {'platform': 'x86_64', 'osversion': 'Ubuntu 11.10', 'os': 'linux', 'name': 'qm-pxp01'}, 'testrun': {'date': 1343062245, 'suite': 'suite_name'}, 'results': {'another_test': [2, 3, 4], 'test_name': [1, 2, 3]}, 'test_build': {'version': '14.0a2', 'revision': '785345035a3b', 'id': '20120228122102', 'branch': 'Mozilla-Aurora', 'name': 'Firefox'}}]
  52 +
48 53
49 54 Development
50 55 -----------

0 comments on commit de84ef1

Please sign in to comment.
Something went wrong with that request. Please try again.