Skip to content

Commit

Permalink
Fix refactored imports (#9136)
Browse files Browse the repository at this point in the history
* Fix imports

* Fix in directory

* Fix imports

* Postfix test import

* Fix style

* Fix ON_WINDOWS import
  • Loading branch information
ChristineTChen authored Apr 9, 2021
1 parent 90f9447 commit 41988df
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion datadog_checks_dev/datadog_checks/dev/kind.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
from six import PY3

from .env import environment_run
from .fs import create_file, file_exists, path_join
from .structures import EnvVars, LazyFunction, TempDir
from .subprocess import run_command
from .utils import create_file, file_exists, get_current_check_name, get_tox_env, path_join
from .utils import get_current_check_name, get_tox_env

if PY3:
from shutil import which
Expand Down
3 changes: 2 additions & 1 deletion datadog_checks_dev/datadog_checks/dev/kube_port_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
from contextlib import contextmanager

from .env import environment_run
from .fs import chdir
from .ssh_tunnel import KillProcess, run_background_command
from .structures import LazyFunction, TempDir
from .utils import chdir, find_free_port, get_ip
from .utils import find_free_port, get_ip

PID_FILE = 'kubectl.pid'

Expand Down
4 changes: 2 additions & 2 deletions directory/tests/test_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import pytest

from datadog_checks.base.errors import CheckException, ConfigurationError
from datadog_checks.dev.utils import create_file
from datadog_checks.dev.utils import temp_dir as temp_directory
from datadog_checks.dev.fs import create_file
from datadog_checks.dev.fs import temp_dir as temp_directory
from datadog_checks.directory import DirectoryCheck

from . import common
Expand Down
2 changes: 1 addition & 1 deletion openldap/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest

from datadog_checks.dev import TempDir, docker_run
from datadog_checks.dev.utils import create_file, path_exists
from datadog_checks.dev.fs import create_file, path_exists
from datadog_checks.openldap import OpenLDAP

from .common import DEFAULT_INSTANCE, HERE, HOST
Expand Down
2 changes: 1 addition & 1 deletion openstack_controller/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import pytest

from datadog_checks.base.utils.http import RequestsWrapper
from datadog_checks.dev.fs import get_here
from datadog_checks.dev.ssh_tunnel import socks_proxy
from datadog_checks.dev.terraform import terraform_run
from datadog_checks.dev.utils import get_here


@pytest.fixture(scope='session')
Expand Down
2 changes: 1 addition & 1 deletion postfix/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from datadog_checks.base import ensure_unicode
from datadog_checks.dev import LazyFunction, TempDir
from datadog_checks.dev.env import environment_run, serialize_data, set_env_vars
from datadog_checks.dev.utils import create_file
from datadog_checks.dev.fs import create_file

from .common import get_e2e_instance, get_e2e_metadata

Expand Down
4 changes: 3 additions & 1 deletion vault/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
import requests

from datadog_checks.dev import LazyFunction, TempDir, docker_run, run_command
from datadog_checks.dev.ci import running_on_ci
from datadog_checks.dev.conditions import WaitFor
from datadog_checks.dev.utils import ON_WINDOWS, create_file, running_on_ci
from datadog_checks.dev.fs import create_file
from datadog_checks.dev.utils import ON_WINDOWS
from datadog_checks.vault import Vault

from .common import COMPOSE_FILE, HEALTH_ENDPOINT, INSTANCES, get_vault_server_config_file
Expand Down

0 comments on commit 41988df

Please sign in to comment.