Skip to content

Commit 6f22217

Browse files
Release 3.1.9
Signed-off-by: Steffan J. Taylor <[email protected]>
1 parent 0715d14 commit 6f22217

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33

44
# define package version
5-
version = '3.1.7'
5+
version = '3.1.9'
66
# ... and record it for ibmpairs package
77
with open("ibmpairs/version.py", 'w') as f:
88
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))

tests/test_query.py

+3-16
Original file line numberDiff line numberDiff line change
@@ -2545,7 +2545,7 @@ def test_query_response_from_dict(self):
25452545
self.assertEqual(query_response_from_dict.data[0].aggregation, "string")
25462546
self.assertEqual(query_response_from_dict.message, "string")
25472547
self.assertEqual(query_response_from_dict.info.usage, 2)
2548-
self.assertEqual(query_response_from_dict.info.usage_unit, 2)
2548+
self.assertEqual(query_response_from_dict.info.usage_unit, "bytes")
25492549
self.assertEqual(query_response_from_dict.info.max_usage, 2.2)
25502550
self.assertEqual(query_response_from_dict.info.size, 2)
25512551
self.assertEqual(query_response_from_dict.info.max_size, 2.2)
@@ -2609,7 +2609,7 @@ def test_query_response_to_dict(self):
26092609
self.assertEqual(query_response_to_dict["data"][0]["aggregation"], "string")
26102610
self.assertEqual(query_response_to_dict["message"], "string")
26112611
self.assertEqual(query_response_to_dict["info"]["usage"], 2)
2612-
self.assertEqual(query_response_to_dict["info"]["usage_unit"], 2)
2612+
self.assertEqual(query_response_to_dict["info"]["usage_unit"], "bytes")
26132613
self.assertEqual(query_response_to_dict["info"]["max_usage"], 2.2)
26142614
self.assertEqual(query_response_to_dict["info"]["size"], 2)
26152615
self.assertEqual(query_response_to_dict["info"]["max_size"], 2.2)
@@ -2674,7 +2674,7 @@ def test_query_response_from_json(self):
26742674
self.assertEqual(query_response_from_json.data[0].aggregation, "string")
26752675
self.assertEqual(query_response_from_json.message, "string")
26762676
self.assertEqual(query_response_from_json.info.usage, 2)
2677-
self.assertEqual(query_response_from_json.info.usage_unit, 2)
2677+
self.assertEqual(query_response_from_json.info.usage_unit, "bytes")
26782678
self.assertEqual(query_response_from_json.info.max_usage, 2.2)
26792679
self.assertEqual(query_response_from_json.info.size, 2)
26802680
self.assertEqual(query_response_from_json.info.max_size, 2.2)
@@ -3895,7 +3895,6 @@ def test_processor_to_json(self):
38953895
"publish": True,
38963896
"debug": True,
38973897
"autoIngest": True,
3898-
"dryRun": True,
38993898
"notification":
39003899
{
39013900
"type": "rabbitmq",
@@ -3999,7 +3998,6 @@ def test_processor_to_json(self):
39993998
"publish": true,
40003999
"debug": true,
40014000
"autoIngest": true,
4002-
"dryRun": true,
40034001
"notification":
40044002
{
40054003
"type": "rabbitmq",
@@ -4486,7 +4484,6 @@ def test_query_init(self):
44864484
query.processor = [processor]
44874485
query.debug = True
44884486
query.auto_ingest = True
4489-
query.dry_run = True
44904487
except Exception as ex:
44914488
got_exception = True
44924489

@@ -4532,7 +4529,6 @@ def test_query_init(self):
45324529
self.assertEqual(query.processor[0].options[0].value, "string")
45334530
self.assertEqual(query.debug, True)
45344531
self.assertEqual(query.auto_ingest, True)
4535-
self.assertEqual(query.dry_run, True)
45364532

45374533
#
45384534
def test_query_from_dict(self):
@@ -4580,7 +4576,6 @@ def test_query_from_dict(self):
45804576
self.assertEqual(query_from_dict.publish, True)
45814577
self.assertEqual(query_from_dict.debug, True)
45824578
self.assertEqual(query_from_dict.auto_ingest, True)
4583-
self.assertEqual(query_from_dict.dry_run, True)
45844579
self.assertEqual(query_from_dict.notification.type, "rabbitmq")
45854580
self.assertEqual(query_from_dict.notification.host, "string")
45864581
self.assertEqual(query_from_dict.notification.queue, "string")
@@ -4646,7 +4641,6 @@ def test_query_to_dict(self):
46464641
self.assertEqual(query_to_dict["publish"], True)
46474642
self.assertEqual(query_to_dict["debug"], True)
46484643
self.assertEqual(query_to_dict["auto_ingest"], True)
4649-
self.assertEqual(query_to_dict["dry_run"], True)
46504644
self.assertEqual(query_to_dict["notification"]["type"], "rabbitmq")
46514645
self.assertEqual(query_to_dict["notification"]["host"], "string")
46524646
self.assertEqual(query_to_dict["notification"]["queue"], "string")
@@ -4712,7 +4706,6 @@ def test_query_to_dict_query_post(self):
47124706
self.assertEqual(query_to_dict_query_post["publish"], True)
47134707
self.assertEqual(query_to_dict_query_post["debug"], True)
47144708
self.assertEqual(query_to_dict_query_post["autoIngest"], True)
4715-
self.assertEqual(query_to_dict_query_post["dryRun"], True)
47164709
self.assertEqual(query_to_dict_query_post["notification"]["type"], "rabbitmq")
47174710
self.assertEqual(query_to_dict_query_post["notification"]["host"], "string")
47184711
self.assertEqual(query_to_dict_query_post["notification"]["queue"], "string")
@@ -4776,7 +4769,6 @@ def test_query_from_json(self):
47764769
self.assertEqual(query_from_json.publish, True)
47774770
self.assertEqual(query_from_json.debug, True)
47784771
self.assertEqual(query_from_json.auto_ingest, True)
4779-
self.assertEqual(query_from_json.dry_run, True)
47804772
self.assertEqual(query_from_json.notification.type, "rabbitmq")
47814773
self.assertEqual(query_from_json.notification.host, "string")
47824774
self.assertEqual(query_from_json.notification.queue, "string")
@@ -4792,11 +4784,6 @@ def test_query_from_json(self):
47924784
self.assertEqual(query_from_json.processor[1].type, "string2")
47934785
self.assertEqual(query_from_json.processor[1].options[0].name, "string2")
47944786
self.assertEqual(query_from_json.processor[1].options[0].value, "string2")
4795-
self.assertEqual(query_from_json.info.size, 2)
4796-
self.assertEqual(query_from_json.info.max_size, 1.2)
4797-
self.assertEqual(query_from_json.info.count, 2)
4798-
self.assertEqual(query_from_json.info.interactive_max_count, 2)
4799-
self.assertEqual(query_from_json.info.max_count, 2)
48004787

48014788
#
48024789
def test_query_to_json(self):

0 commit comments

Comments
 (0)