This commit is contained in:
Jean-Paul Calderone 2020-10-27 09:49:58 -04:00
parent 03a6546f00
commit b9f7bcab4e
4 changed files with 4 additions and 18 deletions

View File

@ -15,7 +15,6 @@ from foolscap.furl import (
from eliot import ( from eliot import (
to_file, to_file,
log_call, log_call,
start_action,
) )
from twisted.python.procutils import which from twisted.python.procutils import which
@ -34,7 +33,6 @@ from util import (
_DumpOutputProtocol, _DumpOutputProtocol,
_ProcessExitedProtocol, _ProcessExitedProtocol,
_create_node, _create_node,
_run_node,
_cleanup_tahoe_process, _cleanup_tahoe_process,
_tahoe_runner_optional_coverage, _tahoe_runner_optional_coverage,
await_client_ready, await_client_ready,

View File

@ -1,7 +1,6 @@
import sys import sys
from os.path import join from os.path import join
from twisted.internet import task
from twisted.internet.error import ProcessTerminated from twisted.internet.error import ProcessTerminated
import util import util

View File

@ -1,15 +1,8 @@
from __future__ import print_function from __future__ import print_function
import sys import sys
import time from os import mkdir
import shutil from os.path import join
from os import mkdir, unlink, listdir
from os.path import join, exists
from six.moves import StringIO
from twisted.internet.protocol import ProcessProtocol
from twisted.internet.error import ProcessExitedAlready, ProcessDone
from twisted.internet.defer import inlineCallbacks, Deferred
import pytest import pytest
import pytest_twisted import pytest_twisted

View File

@ -9,20 +9,15 @@ WebAPI *should* do in every situation. It's not clear the latter
exists anywhere, however. exists anywhere, however.
""" """
import sys
import time import time
import shutil
import json import json
import urllib2 import urllib2
from os import mkdir, unlink, utime
from os.path import join, exists, getmtime
import allmydata.uri import allmydata.uri
import util import util
import requests import requests
import pytest_twisted
import html5lib import html5lib
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@ -265,7 +260,8 @@ def test_directory_deep_check(alice):
dircap_url, dircap_url,
params={u"t": u"json"}, params={u"t": u"json"},
) )
dir_meta = json.loads(resp.content) # Just verify it is valid JSON.
json.loads(resp.content)
# upload a file of pangrams into the directory # upload a file of pangrams into the directory
FILE_CONTENTS = u"Sphinx of black quartz, judge my vow.\n" * (2048*10) FILE_CONTENTS = u"Sphinx of black quartz, judge my vow.\n" * (2048*10)