Skip to content

Commit

Permalink
rename storage providers to providers
Browse files Browse the repository at this point in the history
  • Loading branch information
rafsaf committed Jul 21, 2023
1 parent ee1275d commit 2b6f3ee
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
6 changes: 1 addition & 5 deletions backuper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@

from backuper import config, notifications
from backuper.backup_targets.base_target import BaseBackupTarget
from backuper.storage_providers import (
BaseBackupProvider,
GoogleCloudStorage,
LocalFiles,
)
from backuper.providers import BaseBackupProvider, GoogleCloudStorage, LocalFiles

exit_event = threading.Event()
log = logging.getLogger(__name__)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import google.cloud.storage as storage

from backuper import config, core
from backuper.storage_providers import base_provider
from backuper.providers.base_provider import BaseBackupProvider

log = logging.getLogger(__name__)


class GoogleCloudStorage(
base_provider.BaseBackupProvider,
BaseBackupProvider,
name=config.BackupProviderEnum.GOOGLE_CLOUD_STORAGE,
):
"""Represent GCS bucket for storing backups."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
from pathlib import Path

from backuper import config, core
from backuper.storage_providers import base_provider
from backuper.providers.base_provider import BaseBackupProvider

log = logging.getLogger(__name__)


class LocalFiles(
base_provider.BaseBackupProvider, name=config.BackupProviderEnum.LOCAL_FILES
BaseBackupProvider,
name=config.BackupProviderEnum.LOCAL_FILES,
):
"""Represent local folder `data` for storing backups.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_storage_provider_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest

from backuper import config
from backuper.storage_providers import GoogleCloudStorage
from backuper.providers import GoogleCloudStorage


@pytest.fixture(autouse=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_storage_provider_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

from backuper import config
from backuper.storage_providers import LocalFiles
from backuper.providers import LocalFiles


@pytest.mark.parametrize("method_name", ["_clean", "safe_clean"])
Expand Down

0 comments on commit 2b6f3ee

Please sign in to comment.