11#!/usr/bin/env python
2- # -*- coding: utf-8 -*-
32"""
43 A py.test plugin which helps testing Flask applications.
54
98import sys
109
1110import pytest
12-
1311from flask import json
1412from werkzeug .utils import cached_property
1513
16- from .fixtures import (
17- client , config , accept_json , accept_jsonp , accept_any , accept_mimetype ,
18- client_class , live_server , request_ctx
19- )
14+ from .fixtures import accept_any
15+ from .fixtures import accept_json
16+ from .fixtures import accept_jsonp
17+ from .fixtures import accept_mimetype
18+ from .fixtures import client
19+ from .fixtures import client_class
20+ from .fixtures import config
21+ from .fixtures import live_server
22+ from .fixtures import request_ctx
2023from .pytest_compat import getfixturevalue
2124
2225
23- class JSONResponse ( object ) :
26+ class JSONResponse :
2427 """Mixin with testing helper methods for JSON responses."""
2528
2629 @cached_property
@@ -38,13 +41,13 @@ def __eq__(self, other):
3841 # separate so we can simplify the code once Python 2 support is dropped
3942 if sys .version_info [0 ] == 2 :
4043 try :
41- super_eq = super (JSONResponse , self ).__eq__
44+ super_eq = super ().__eq__
4245 except AttributeError :
4346 return NotImplemented
4447 else :
4548 return super_eq (other )
4649 else :
47- return super (JSONResponse , self ).__eq__ (other )
50+ return super ().__eq__ (other )
4851
4952 def __ne__ (self , other ):
5053 return not self == other
0 commit comments