Skip to content

Commit

Permalink
Refactor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yalef committed Dec 6, 2023
1 parent 9100a07 commit 46bb743
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_api/test_export.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from django.urls import reverse

from rest_framework import status
from rest_framework.test import APIClient
from rest_framework import status, test

import pytest

from import_export_extensions.models import ExportJob


@pytest.mark.django_db(transaction=True)
def test_export_api_creates_export_job(admin_api_client: APIClient):
def test_export_api_creates_export_job(admin_api_client: test.APIClient):
"""Ensure export start API creates new export job."""
response = admin_api_client.post(
path=reverse("export-artist-start"),
Expand All @@ -24,7 +23,7 @@ def test_export_api_creates_export_job(admin_api_client: APIClient):

@pytest.mark.django_db(transaction=True)
def test_export_api_detail(
admin_api_client: APIClient,
admin_api_client: test.APIClient,
artist_export_job: ExportJob,
):
"""Ensure export detail API shows current export job status."""
Expand Down

0 comments on commit 46bb743

Please sign in to comment.