iterative/dvc

View on GitHub
dvc/testing/workspace_tests.py

Summary

Maintainability
B
6 hrs
Test Coverage

File workspace_tests.py has 282 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import os
from typing import Union

import pytest
from funcy import first
Severity: Minor
Found in dvc/testing/workspace_tests.py - About 2 hrs to fix

    Function test_import_dir has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def test_import_dir(self, tmp_dir, dvc, workspace, stage_md5, dir_md5):
    Severity: Minor
    Found in dvc/testing/workspace_tests.py - About 35 mins to fix

      Function test_add_to_remote has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def test_add_to_remote(self, tmp_dir, dvc, remote, workspace):
      Severity: Minor
      Found in dvc/testing/workspace_tests.py - About 35 mins to fix

        Function test_import_empty_dir has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def test_import_empty_dir(self, tmp_dir, dvc, workspace, is_object_storage):
        Severity: Minor
        Found in dvc/testing/workspace_tests.py - About 35 mins to fix

          Function test_import_no_download has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def test_import_no_download(self, tmp_dir, dvc, remote_version_aware, scm):
          Severity: Minor
          Found in dvc/testing/workspace_tests.py - About 35 mins to fix

            Function test_import_url_to_remote_file has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def test_import_url_to_remote_file(self, tmp_dir, dvc, workspace, remote):
            Severity: Minor
            Found in dvc/testing/workspace_tests.py - About 35 mins to fix

              Function test_import_url_to_remote_dir has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def test_import_url_to_remote_dir(self, tmp_dir, dvc, workspace, remote):
              Severity: Minor
              Found in dvc/testing/workspace_tests.py - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status