Skip to content

Commit

Permalink
Ensure that all tests is using Flask json provider (#603)
Browse files Browse the repository at this point in the history
Issue #600
  • Loading branch information
nycholas authored Nov 2, 2024
1 parent 7ec8108 commit f5078d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion tests/integration/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
# POSSIBILITY OF SUCH DAMAGE.
# pylint: disable=duplicate-code,too-many-public-methods
import os
import json

from flask import json

from .conftest import APITestCase

Expand Down
3 changes: 2 additions & 1 deletion tests/shared/test_apps/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import json
import typing as t

from flask import json

if t.TYPE_CHECKING:
from requests import Session

Expand Down
3 changes: 2 additions & 1 deletion tests/shared/test_apps/test_async_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import json
import typing as t

from flask import json

import pytest

if t.TYPE_CHECKING:
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import json
import uuid
import typing as t

from flask import Flask
from flask import Flask, json

import pytest
from werkzeug.datastructures import Headers
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_async_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import json
import uuid
import typing as t
import asyncio

from flask import Flask
from flask import Flask, json

import pytest
from werkzeug.datastructures import Headers
Expand Down

0 comments on commit f5078d9

Please sign in to comment.