Skip to content
Open
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
31 changes: 1 addition & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ setuptools = ">=75.8,<85.0"

[tool.poetry.group.dev.dependencies]
coverage = "^7.2.7"
mock = "^5.1.0"
mypy = "^1.4.1"
pylint = ">=3.3.6,<5.0.0"
sphinx = "^7.1.2"
sphinx-autodoc-typehints = "^1.24.0"
yapf = "^0.40.1"
types-six = "^1.16.21.9"
types-mock = "^5.1.0.1"
sphinx-rtd-theme = "^1.2.2"
wheel = ">=0.41.1,<0.47.0"
setuptools = ">=75.8,<85.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/providers/aws/aws_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
# limitations under the License.
"""AWS mocks used across tests."""

import mock
from unittest import mock

from libcloudforensics.providers.aws.internal import account
from libcloudforensics.providers.aws.internal import ebs
from libcloudforensics.providers.aws.internal import ec2
from libcloudforensics.providers.aws.internal import s3
from libcloudforensics.providers.aws.internal import log as aws_log
from libcloudforensics.providers.aws.internal import s3

with mock.patch('boto3.session.Session._setup_loader') as mock_session:
mock_session.return_value = None
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/aws/internal/test_ebs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics.providers.aws.internal import ebs
from tests.providers.aws import aws_mocks
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/aws/internal/test_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from libcloudforensics.providers.aws.internal import ebs
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/aws/internal/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.aws import aws_mocks

Expand Down
2 changes: 1 addition & 1 deletion tests/providers/aws/internal/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.aws import aws_mocks

Expand Down
5 changes: 2 additions & 3 deletions tests/providers/aws/test_forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from libcloudforensics.providers.aws.internal import ebs

from libcloudforensics.providers.aws import forensics
from libcloudforensics.providers.aws.internal import ebs
from tests.providers.aws import aws_mocks


Expand Down
2 changes: 1 addition & 1 deletion tests/providers/azure/azure_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
"""Azure mocks used across tests."""

import mock
from unittest import mock

from libcloudforensics.providers.azure.internal import account
from libcloudforensics.providers.azure.internal import compute
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/azure/internal/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from libcloudforensics.providers.azure.internal import common
Expand Down
3 changes: 1 addition & 2 deletions tests/providers/azure/internal/test_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@

import typing
import unittest
import mock
from unittest import mock

from azure.mgmt.compute import models # pylint: disable=import-error


from libcloudforensics import errors
from libcloudforensics.providers.azure.internal import compute
from tests.providers.azure import azure_mocks
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/azure/internal/test_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.azure import azure_mocks

Expand Down
2 changes: 1 addition & 1 deletion tests/providers/azure/internal/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.azure import azure_mocks

Expand Down
2 changes: 1 addition & 1 deletion tests/providers/azure/internal/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from tests.providers.azure import azure_mocks
Expand Down
6 changes: 2 additions & 4 deletions tests/providers/azure/test_forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from libcloudforensics.providers.azure.internal import compute

from libcloudforensics.providers.azure import forensics

from libcloudforensics.providers.azure.internal import compute
from tests.providers.azure import azure_mocks


Expand Down
2 changes: 1 addition & 1 deletion tests/providers/gcp/internal/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
2 changes: 1 addition & 1 deletion tests/providers/gcp/internal/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
3 changes: 1 addition & 2 deletions tests/providers/gcp/internal/test_cloudresourcemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"""Tests for the gcp module - cloudresourcemanager.py"""
import typing
import unittest

import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
2 changes: 1 addition & 1 deletion tests/providers/gcp/internal/test_cloudsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
5 changes: 3 additions & 2 deletions tests/providers/gcp/internal/test_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
import os
import typing
import unittest
import mock
from unittest import mock

import six
from googleapiclient.errors import HttpError

from libcloudforensics import errors
from libcloudforensics.scripts import utils
from libcloudforensics.providers.gcp.internal import compute
from libcloudforensics.scripts import utils
from tests.providers.gcp import gcp_mocks


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
4 changes: 2 additions & 2 deletions tests/providers/gcp/internal/test_gke.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

import typing
import unittest
import mock
from unittest import mock

from googleapiclient.errors import HttpError

import libcloudforensics.providers.kubernetes.cluster as k8s
from libcloudforensics import errors
from libcloudforensics.providers.gcp.internal import gke
import libcloudforensics.providers.kubernetes.cluster as k8s


class GoogleKubernetesEngineTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/gcp/internal/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
3 changes: 1 addition & 2 deletions tests/providers/gcp/internal/test_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"""Tests for the gcp module - monitoring.py"""
import typing
import unittest

import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
3 changes: 1 addition & 2 deletions tests/providers/gcp/internal/test_serviceusage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"""Tests for the gcp module - serviceusage.py"""
import typing
import unittest

import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks

Expand Down
4 changes: 2 additions & 2 deletions tests/providers/gcp/internal/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

import typing
import unittest
import mock
from unittest import mock

from tests.providers.gcp import gcp_mocks
from libcloudforensics.providers.utils.storage_utils import SplitStoragePath
from tests.providers.gcp import gcp_mocks


class GoogleCloudStorageTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/gcp/internal/test_storagetransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from tests.providers.gcp import gcp_mocks
Expand Down
3 changes: 1 addition & 2 deletions tests/providers/gcp/test_forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@

import typing
import unittest
import mock
from unittest import mock

from libcloudforensics import errors
from libcloudforensics.providers.gcp import forensics
from libcloudforensics.providers.gcp.internal import compute

from tests.providers.gcp import gcp_mocks


Expand Down
2 changes: 1 addition & 1 deletion tests/providers/kubernetes/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import typing
import unittest
from unittest import mock

import mock
from kubernetes import client

import libcloudforensics.providers.kubernetes.cluster as k8s_cluster
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/kubernetes/test_netpol.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import typing
import unittest
from unittest import mock

import mock
from kubernetes import client

from libcloudforensics.providers.kubernetes import netpol
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/kubernetes/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"""Tests on Kubernetes service objects."""
import typing
import unittest
from unittest import mock

import mock
from kubernetes import client

from libcloudforensics.providers.kubernetes import services
Expand Down
Loading