Skip to content

Commit 87b174e

Browse files
authored
fix: add required requester for pygithub 2.6.0 support
1 parent bf18fee commit 87b174e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ def create_github_content_file(file=None):
99
f = open(f'./tests/fixtures/{file}', 'r')
1010
contents = str(base64.b64encode(bytearray(f.read(), 'utf-8')), 'utf-8')
1111
attributes = {'name': file, 'path': f'/{file}','encoding': 'base64','content': contents}
12-
return ContentFile.ContentFile(None, {}, attributes)
12+
requester = {'is_not_lazy': True}
13+
return ContentFile.ContentFile(requester, {}, attributes, complete=True)

0 commit comments

Comments
 (0)