Esempio n. 1
0
 def setUp(self):
     os.environ["STATS_ENABLED"] = "1"
     os.environ["STATS_URL"] = "stderr://"
     self._tags = stats.Tags({"client": "env_stderr"})
Esempio n. 2
0
 def setUp(self):
     self._url = "stdout://"
     self._client = stats.Client(self._url).with_tags({"tag1": "value1"})
     self._client = self._client.with_tags({"tag2": "value2"})
     self._tags = stats.Tags({"client": "with_tags_stdout"})
Esempio n. 3
0
 def test_tags(self):
     tags = stats.Tags({"tag1": "val1", "tag2": "val2", "tag3": "val3"})
     assert str(tags) == "tag1=val1,tag2=val2,tag3=val3"
Esempio n. 4
0
 def setUp(self):
     self._client = stats.NoneClient()
     self._tags = stats.Tags({"client": "stderr"})
Esempio n. 5
0
 def setUp(self):
     self._url = "stderr://"
     self._client = stats.Client(self._url)
     self._tags = stats.Tags({"client": "stderr"})
Esempio n. 6
0
 def setUp(self):
     self._filename = "./stats.output"
     self._url = "file://" + self._filename
     self._client = stats.Client(self._url)
     self._tags = stats.Tags({"client": "file"})
Esempio n. 7
0
 def setUp(self):
     self._url = "udp://localhost:8125"
     self._client = stats.Client(self._url)
     self._tags = stats.Tags({"client": "udp"})