Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/git/tests/test_converters.py
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | def test_commit_to_revision(self): | ||||
), | ), | ||||
message=b"add submodule dependency\n", | message=b"add submodule dependency\n", | ||||
metadata=None, | metadata=None, | ||||
date=TimestampWithTimezone( | date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1443083765, microseconds=0,), | timestamp=Timestamp(seconds=1443083765, microseconds=0,), | ||||
negative_utc=False, | negative_utc=False, | ||||
offset=120, | offset=120, | ||||
), | ), | ||||
parents=[b"\xc3\xc5\x88q23`\x9f[\xbb\xb2\xd9\xe7\xf3\xfbJf\x0f?r"], | parents=(b"\xc3\xc5\x88q23`\x9f[\xbb\xb2\xd9\xe7\xf3\xfbJf\x0f?r",), | ||||
synthetic=False, | synthetic=False, | ||||
) | ) | ||||
self.assertEqual(revision, expected_revision) | self.assertEqual(revision, expected_revision) | ||||
def test_author_line_to_author(self): | def test_author_line_to_author(self): | ||||
# edge case out of the way | # edge case out of the way | ||||
with self.assertRaises(TypeError): | with self.assertRaises(TypeError): | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |