66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6,descarteslabs/catalog/tests/test_attributes.py,TestAttributes,test_immutabletimestamp,#TestAttributes#,50

Before Change



class TestAttributes(unittest.TestCase):
    def test_immutabletimestamp(self):
        date = ImmutableTimestamp()
        assert date.deserialize(None) is None

        assert (
            date.deserialize("2019-02-01T00:00:00.0000Z", validate=False).tzinfo == utc

After Change


            "2019-02-01T00:00:00.0000Z", validate=False
        ) == datetime(2019, 2, 1, tzinfo=utc)

        date = Timestamp(readonly=True)
        assert date.deserialize(
            datetime(2013, 12, 31, 23, 59, 59), validate=False
        ) == datetime(2013, 12, 31, 23, 59, 59, tzinfo=utc)
        value = date.deserialize(datetime(2013, 12, 31, 23, 59, 59), validate=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_attributes.py
Class Name: TestAttributes
Method Name: test_immutabletimestamp


Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/image_upload.py
Class Name: ImageUpload
Method Name: ImageUpload_1


Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_attributes.py
Class Name: Nested
Method Name: Nested_1