File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,23 @@ def test_demo_igent():
11
11
)
12
12
13
13
assert len (result .items ) == 2
14
+
15
+ def test_two_instances ():
16
+ consumer_one = Consumer (client = "67c716e616c11421cfe2faf6" , secret = "08dafe89-0389-45b4-9832-cc565fb8c2eb" )
17
+ consumer_two = Consumer (client = "67c716e616c11421cfe2faf6" , secret = "08dafe89-0389-45b4-9832-cc565fb8c2eb" )
18
+ result_one = consumer_one .single_chunk (
19
+ datasets = ["612f6c39cbceda0ea9753d95" ],
20
+ metrics = ["org.dyamand.types.common.Temperature::number" ],
21
+ from_timestamp = 1740924034000 ,
22
+ to_timestamp = 1741100614258 ,
23
+ limit = 2
24
+ )
25
+ result_two = consumer_one .single_chunk (
26
+ datasets = ["612f6c39cbceda0ea9753d95" ],
27
+ metrics = ["org.dyamand.types.common.Temperature::number" ],
28
+ from_timestamp = 1740924034000 ,
29
+ to_timestamp = 1741100614258 ,
30
+ limit = 2
31
+ )
32
+ assert len (result_one .items ) == 2
33
+ assert len (result_two .items ) == 2
You can’t perform that action at this time.
0 commit comments