From ace4574876be5e46c1d712bc43fafcccbe3e91d6 Mon Sep 17 00:00:00 2001 From: Keith Manville Date: Wed, 30 Oct 2024 14:28:04 -0400 Subject: [PATCH] tests: added tests --- tests/unit/restapi/v1/conftest.py | 4 ++-- tests/unit/restapi/v1/test_workflow_resource_import.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/restapi/v1/conftest.py b/tests/unit/restapi/v1/conftest.py index 556a03baa..2e607e303 100644 --- a/tests/unit/restapi/v1/conftest.py +++ b/tests/unit/restapi/v1/conftest.py @@ -15,20 +15,20 @@ # ACCESS THE FULL CC BY 4.0 LICENSE HERE: # https://creativecommons.org/licenses/by/4.0/legalcode """Fixtures representing resources needed for test suites""" +import tarfile import textwrap from collections.abc import Iterator from pathlib import Path +from tempfile import NamedTemporaryFile from typing import Any, cast import pytest -import tarfile import toml from flask import Flask from flask.testing import FlaskClient from flask_sqlalchemy import SQLAlchemy from injector import Injector from pytest import MonkeyPatch -from tempfile import NamedTemporaryFile from ..lib import actions, mock_rq diff --git a/tests/unit/restapi/v1/test_workflow_resource_import.py b/tests/unit/restapi/v1/test_workflow_resource_import.py index 3cb94f32b..bdd7c4620 100644 --- a/tests/unit/restapi/v1/test_workflow_resource_import.py +++ b/tests/unit/restapi/v1/test_workflow_resource_import.py @@ -21,16 +21,16 @@ registered, renamed, deleted, and locked/unlocked as expected through the REST API. """ -from typing import Any from pathlib import Path from tempfile import NamedTemporaryFile +from typing import Any + from flask.testing import FlaskClient from flask_sqlalchemy import SQLAlchemy from werkzeug.test import TestResponse from dioptra.restapi.routes import V1_ROOT, V1_WORKFLOWS_ROUTE - # -- Actions ---------------------------------------------------------------------------