Fix sorting of imports in tests. Remove an unnecessary mock

Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
Jason Robinson 2019-01-22 11:07:28 +02:00
parent db33634b1d
commit a47fac9af6

View File

@ -12,7 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from mock import patch, Mock from mock import Mock, patch
from parameterized import parameterized from parameterized import parameterized
from synapse.app.federation_reader import FederationReaderServer from synapse.app.federation_reader import FederationReaderServer
@ -21,7 +22,6 @@ from synapse.app.homeserver import SynapseHomeServer
from tests.unittest import HomeserverTestCase from tests.unittest import HomeserverTestCase
@patch("synapse.app.homeserver.KeyApiV2Resource", new=Mock())
class FederationReaderOpenIDListenerTests(HomeserverTestCase): class FederationReaderOpenIDListenerTests(HomeserverTestCase):
def make_homeserver(self, reactor, clock): def make_homeserver(self, reactor, clock):
hs = self.setup_test_homeserver( hs = self.setup_test_homeserver(