tests: fix PEP8ness
This commit is contained in:
parent
cecf66e523
commit
76af20c99e
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import tempfile
|
||||
|
||||
DEBUG = False
|
||||
|
||||
|
@ -15,5 +16,4 @@ DATABASES = {
|
|||
}
|
||||
}
|
||||
|
||||
import tempfile
|
||||
MEDIA_ROOT = tempfile.mkdtemp('fargo-test')
|
||||
|
|
|
@ -74,7 +74,7 @@ def test_push_document(app, admin_user, john_doe):
|
|||
assert models.Origin.objects.get().slug == 'wcs'
|
||||
assert models.UserDocument.objects.count() == 1
|
||||
assert models.UserDocument.objects.get().user == john_doe
|
||||
assert models.UserDocument.objects.get().deletable_by_user == True
|
||||
assert models.UserDocument.objects.get().deletable_by_user is True
|
||||
assert models.Document.objects.count() == 1
|
||||
assert models.Document.objects.get().content.read() == b'coin'
|
||||
assert (models.UserDocument.objects.get().document
|
||||
|
|
|
@ -240,7 +240,7 @@ def test_command_put_document(db, capsys, app, john_doe):
|
|||
client = OAuth2Client.objects.get()
|
||||
path = os.path.join(os.path.dirname(__file__), 'pdf-sample.pdf')
|
||||
redirect_uri = 'https://example.com/'
|
||||
r = call_command('oauth2-put-document', '--client-id=%s' % client.pk, redirect_uri, path)
|
||||
call_command('oauth2-put-document', '--client-id=%s' % client.pk, redirect_uri, path)
|
||||
out, err = capsys.readouterr()
|
||||
assert err == ''
|
||||
url = out.strip()
|
||||
|
|
Loading…
Reference in New Issue