@@ -87,7 +87,7 @@ def test_read_blob(testrepo: Repository) -> None:
87
87
assert blob .id == BLOB_SHA
88
88
assert isinstance (blob , pygit2 .Blob )
89
89
assert not blob .is_binary
90
- assert ObjectType .BLOB == blob .type
90
+ assert int ( ObjectType .BLOB ) == blob .type
91
91
assert BLOB_CONTENT == blob .data
92
92
assert len (BLOB_CONTENT ) == blob .size
93
93
assert BLOB_CONTENT == blob .read_raw ()
@@ -98,7 +98,7 @@ def test_create_blob(testrepo: Repository) -> None:
98
98
blob = testrepo [blob_oid ]
99
99
100
100
assert isinstance (blob , pygit2 .Blob )
101
- assert ObjectType .BLOB == blob .type
101
+ assert int ( ObjectType .BLOB ) == blob .type
102
102
103
103
assert blob_oid == blob .id
104
104
assert utils .gen_blob_sha1 (BLOB_NEW_CONTENT ) == blob_oid
@@ -122,7 +122,7 @@ def test_create_blob_fromworkdir(testrepo: Repository) -> None:
122
122
blob = testrepo [blob_oid ]
123
123
124
124
assert isinstance (blob , pygit2 .Blob )
125
- assert ObjectType .BLOB == blob .type
125
+ assert int ( ObjectType .BLOB ) == blob .type
126
126
127
127
assert blob_oid == blob .id
128
128
assert utils .gen_blob_sha1 (BLOB_FILE_CONTENT ) == blob_oid
@@ -149,7 +149,7 @@ def test_create_blob_fromdisk(testrepo: Repository) -> None:
149
149
blob = testrepo [blob_oid ]
150
150
151
151
assert isinstance (blob , pygit2 .Blob )
152
- assert ObjectType .BLOB == blob .type
152
+ assert int ( ObjectType .BLOB ) == blob .type
153
153
154
154
155
155
def test_create_blob_fromiobase (testrepo : Repository ) -> None :
@@ -161,7 +161,7 @@ def test_create_blob_fromiobase(testrepo: Repository) -> None:
161
161
blob = testrepo [blob_oid ]
162
162
163
163
assert isinstance (blob , pygit2 .Blob )
164
- assert ObjectType .BLOB == blob .type
164
+ assert int ( ObjectType .BLOB ) == blob .type
165
165
166
166
assert blob_oid == blob .id
167
167
assert BLOB_SHA == blob_oid
0 commit comments