Skip to content
GitLab
Explore
Sign in
CIM - Context Information Management
NGSI-LD Test Suite
Compare revisions
e2b659ae65b768b81b522abb78bb3b7b1d82eeb7 to 0134d81983eb875407bf3f89b5f5e9668dd20334
Hide whitespace changes
Inline
Side-by-side
doc/analysis/generaterobotdata.py
View file @
0134d819
...
...
@@ -554,7 +554,7 @@ class GenerateRobotData:
# pics = f'PICS_{tags[0]}'
#
# return reference, pics
aux
=
[
x
for
x
in
tags
if
match
(
pattern
=
'
^(\d+_\d+_\d+)
'
,
string
=
x
)]
aux
=
[
x
for
x
in
tags
if
match
(
pattern
=
'
^(\d+_\d+_\d+)
|^(\d+_\d+)
'
,
string
=
x
)]
if
len
(
aux
)
==
0
:
raise
Exception
(
...
...
libraries/assertionUtils.py
View file @
0134d819
from
re
import
compile
from
dataclasses
import
dataclass
from
dateTimeUtils
import
parse_ngsild_date
import
dateTimeUtils
from
deepdiff
import
DeepDiff
from
deepdiff.helper
import
CannotCompare
from
prettydiff
import
get_annotated_lines_from_diff
,
diff_json
,
Flag
...
...
@@ -53,8 +53,8 @@ class TemporalPropertyOperator:
or
level
.
path
().
endswith
(
"
[
'
deletedAt
'
]
"
))
def
give_up_diffing
(
self
,
level
,
diff_instance
)
->
bool
:
expected_datetime
=
parse_ngsild_date
(
level
.
t1
)
actual_datetime
=
parse_ngsild_date
(
level
.
t2
)
expected_datetime
=
dateTimeUtils
.
parse_ngsild_date
(
level
.
t1
)
actual_datetime
=
dateTimeUtils
.
parse_ngsild_date
(
level
.
t2
)
return
actual_datetime
is
not
None
and
expected_datetime
==
actual_datetime
...
...
Prev
1
2
Next