Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Jan 8, 2024
1 parent 84cf1e5 commit db8c87a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/integration/backup_tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
from pytest_operator.plugin import OpsTest
from tenacity import RetryError, Retrying, stop_after_attempt, wait_fixed

from ..helpers import get_app_name

from ..ha_tests import helpers as ha_helpers
from ..helpers import get_app_name

S3_APP_NAME = "s3-integrator"
TIMEOUT = 10 * 60
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/backup_tests/test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
import asyncio
import logging
import secrets
import string
import time
Expand All @@ -19,9 +20,11 @@
TIMEOUT = 15 * 60
ENDPOINT = "s3-credentials"
NEW_CLUSTER = "new-mongodb"
import logging


logger = logging.getLogger(__name__)


@pytest.fixture()
async def continuous_writes_to_db(ops_test: OpsTest):
"""Continuously writes to DB for the duration of the test."""
Expand Down Expand Up @@ -84,6 +87,7 @@ async def test_blocked_incorrect_creds(ops_test: OpsTest) -> None:

assert db_unit.workload_status_message == "s3 credentials are incorrect."


@pytest.mark.skip("skip")
@pytest.mark.abort_on_fail
async def test_blocked_incorrect_conf(ops_test: OpsTest) -> None:
Expand Down Expand Up @@ -156,6 +160,7 @@ async def test_create_and_list_backups(ops_test: OpsTest) -> None:
except RetryError:
assert backups == 1, "Backup not created."


@pytest.mark.skip("skip")
@pytest.mark.abort_on_fail
async def test_multi_backup(ops_test: OpsTest, continuous_writes_to_db) -> None:
Expand Down

0 comments on commit db8c87a

Please sign in to comment.