We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf18fee commit 87b174eCopy full SHA for 87b174e
1 file changed
tests/utils.py
@@ -9,4 +9,5 @@ def create_github_content_file(file=None):
9
f = open(f'./tests/fixtures/{file}', 'r')
10
contents = str(base64.b64encode(bytearray(f.read(), 'utf-8')), 'utf-8')
11
attributes = {'name': file, 'path': f'/{file}','encoding': 'base64','content': contents}
12
- return ContentFile.ContentFile(None, {}, attributes)
+ requester = {'is_not_lazy': True}
13
+ return ContentFile.ContentFile(requester, {}, attributes, complete=True)
0 commit comments