Closed davidverweij closed 3 years ago
For reference, this is likely becase normalise_day only nulls hours and minutes, and not miliseconds. For example:
>>> now
datetime.datetime(2021, 3, 26, 0, 0, 0, 647241)
>>> endr
datetime.datetime(2021, 3, 26, 0, 0, 0, 565704)
>>> now <= endr
False
This was resolved in #56
In testing the BTF pipeline, I found the inventory service did not return the appropriate result. Potentially this has to do with the inventory not having an end wear when the device is still being deployed. We should set up some tests to validate this method's functionality, and figure out why it doesn't pick up the query correctly.
Test case
Returns:
None
Logs do confirm that when
checkin
is null, the method does replace it with the current time.Manually querying the inventory returns:
Which indicates that is should have returned
K-ABCABC
. (anonymised)