Skip to content

Commit

Permalink
test: add pytest check for presense of git cli
Browse files Browse the repository at this point in the history
  • Loading branch information
keithmanville committed Feb 21, 2025
1 parent 13ecf68 commit 552d14a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/restapi/v1/workflows/test_resource_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
registered, renamed, deleted, and locked/unlocked as expected through the REST API.
"""

import pytest
import shutil

from http import HTTPStatus
from pathlib import Path
from tempfile import NamedTemporaryFile
Expand Down Expand Up @@ -121,6 +124,8 @@ def test_resource_import_from_files(

assert_imported_resources_match_expected(dioptra_client, resources_import_config)


@pytest.mark.skipif(shutil.which("git") is None, reason="git was not found.")
def test_resource_import_from_repo(
dioptra_client: DioptraClient[DioptraResponseProtocol],
db: SQLAlchemy,
Expand Down

0 comments on commit 552d14a

Please sign in to comment.