Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Pytests on Feature Flags #764

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/modules/datasets/test_dataset_location.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import MagicMock
import pytest

from dataall.base.config import config
from dataall.modules.datasets_base.db.dataset_models import Dataset

@pytest.fixture(scope='module')
Expand All @@ -10,6 +11,7 @@ def dataset1(env_fixture, org_fixture, dataset, group) -> Dataset:
)


@pytest.mark.skipif(not config.get_property("modules.datasets.features.file_actions"), reason="Feature Disabled by Config")
def test_create_location(client, dataset1, user, group, patch_es, module_mocker):
mock_client = MagicMock()
module_mocker.patch("dataall.modules.datasets.services.dataset_location_service.S3LocationClient", mock_client)
Expand Down Expand Up @@ -39,6 +41,7 @@ def test_create_location(client, dataset1, user, group, patch_es, module_mocker)
assert 'test' in response.data.createDatasetStorageLocation.tags


@pytest.mark.skipif(not config.get_property("modules.datasets.features.file_actions"), reason="Feature Disabled by Config")
def test_manage_dataset_location(client, dataset1, user, group):
response = client.query(
"""
Expand Down
Loading