Adding upstream version 1.2+20240521.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6b2864e4b9
commit
8512f66c5a
229 changed files with 19561 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"times": ["1972-01-01T10:00:20.021Z", "1972-01-01T10:00:20.021Z"],
|
||||
"durations": ["1.200s", "1.200s"]
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package repeated_duration_timestamp;
|
||||
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
|
||||
message Test {
|
||||
repeated google.protobuf.Timestamp times = 1;
|
||||
repeated google.protobuf.Duration durations = 2;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
from datetime import (
|
||||
datetime,
|
||||
timedelta,
|
||||
)
|
||||
|
||||
from tests.output_aristaproto.repeated_duration_timestamp import Test
|
||||
|
||||
|
||||
def test_roundtrip():
|
||||
message = Test()
|
||||
message.times = [datetime.now(), datetime.now()]
|
||||
message.durations = [timedelta(), timedelta()]
|
Loading…
Add table
Add a link
Reference in a new issue