0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-21 12:39:08 +01:00

SERVER-94076 Remove unused imports via Ruff rule (#27337)

GitOrigin-RevId: 8923cc14f276be93355d763cb88c04bdb4dd9000
This commit is contained in:
Juan Gu 2024-10-03 17:52:26 -07:00 committed by MongoDB Bot
parent f190e51ce9
commit 2513cc511b
158 changed files with 65 additions and 246 deletions

View File

@ -11,12 +11,9 @@ import pathlib
import platform
import shlex
import shutil
import stat
import subprocess
import sys
import textwrap
import threading
import time
import uuid
from datetime import datetime
from glob import glob

View File

@ -3,12 +3,9 @@
import argparse
from datetime import datetime
import json
import os
import pathlib
import subprocess
import tempfile
import urllib.request
def log_subprocess_run(*args, **kwargs):

View File

@ -2,7 +2,6 @@
import argparse
import hashlib
import json
import os
import pathlib
import tempfile

View File

@ -6,7 +6,6 @@ import argparse
import os
import platform
import re
import shutil
import subprocess
import sys
from buildscripts.install_bazel import install_bazel

View File

@ -17,7 +17,6 @@ from typing import Any, Dict, List, Optional, Set
import structlog
import yaml
from buildscripts.util import runcommand
ENTERPRISE_MODULE_NAME = "enterprise"
ASAN_SIGNATURE = "detect_leaks=1"

View File

@ -5,7 +5,6 @@ import platform
import os
import shlex
import concurrent.futures
import glob
import traceback
import shutil
from typing import Annotated, List

View File

@ -29,7 +29,6 @@
from pathlib import Path
from datetime import datetime
import random
from typing import Sequence
import config
from random_generator import (

View File

@ -28,21 +28,18 @@
"""Data generation entry point."""
import asyncio
import dataclasses
from datetime import datetime
import json
import math
import os
import re
import subprocess
from pathlib import Path
import seaborn as sns
import bson
import matplotlib.pyplot as plt
from config import CollectionTemplate, FieldTemplate
from data_generator import CollectionInfo, DataGenerator
from data_generator import DataGenerator
from database_instance import DatabaseInstance
import parameters_extractor
from random_generator import DataType
from ce_data_settings import database_config, data_generator_config

View File

@ -35,7 +35,6 @@ from enum import Enum
from itertools import chain
from typing import Generic, Sequence, TypeVar
import numpy as np
import random
__all__ = ["RangeGenerator", "DataType", "RandomDistribution"]

View File

@ -40,7 +40,7 @@ import abt_calibrator
import workload_execution
from workload_execution import Query, QueryParameters
import parameters_extractor
from calibration_settings import distributions, main_config
from calibration_settings import main_config
__all__ = []

View File

@ -11,7 +11,7 @@ import subprocess
import sys
import time
from json import JSONDecoder
from typing import Optional, Tuple, Generator, Dict, List, NamedTuple
from typing import Optional, Generator, Dict, List, NamedTuple
import requests

View File

@ -3,7 +3,6 @@
import os
import sys
from typing import List, Optional
import click
import structlog

View File

@ -1,9 +1,7 @@
"""Convert Evergreen's expansions.yml to an eval-able shell script."""
import sys
import platform
from shlex import quote
from typing import Any
def _error(msg: str) -> None:

View File

@ -1,6 +1,5 @@
"""GDB commands for MongoDB."""
import datetime
import json
import os
import re

View File

@ -2,7 +2,6 @@
import os
import re
from typing import Optional
import gdb
# Pattern to match output of 'info files'

View File

@ -10,7 +10,6 @@ import argparse
import json
import os
import re
import sys
import yaml
VERSION_JSON = "version.json"

View File

@ -5,7 +5,6 @@ Utility to interact with golden data test outputs, produced by golden data test
For details on the golden data test framework see: docs/golden_data_test_framework.md.
"""
import json
import os
import pathlib
import platform
@ -13,7 +12,7 @@ import re
import sys
import shutil
from subprocess import call, CalledProcessError, check_output, STDOUT, DEVNULL
from subprocess import call, check_output
import click
# Get relative imports to work when the package is not installed on the PYTHONPATH.

View File

@ -35,7 +35,7 @@ import logging
import os
import sys
from tempfile import TemporaryDirectory
from typing import Any, Dict, List, Mapping, Set
from typing import Dict, List, Set
from pymongo import MongoClient
@ -49,8 +49,6 @@ from buildscripts.resmokelib import configure_resmoke
from buildscripts.resmokelib.logging import loggers
from buildscripts.resmokelib.testing.fixtures import interface
from buildscripts.resmokelib.testing.fixtures.fixturelib import FixtureLib
from buildscripts.resmokelib.testing.fixtures.shardedcluster import ShardedClusterFixture
from buildscripts.resmokelib.testing.fixtures.standalone import MongoDFixture
# pylint: enable=wrong-import-position
LOGGER_NAME = "check-idl-definitions"

View File

@ -30,7 +30,6 @@ import argparse
import logging
import os
import sys
import re
import shutil
from subprocess import check_output
from typing import List

View File

@ -34,11 +34,9 @@ This is a lossy translation from the IDL Syntax tree as the IDL AST only contain
the enums and structs that need code generated for them, and just enough information to do that.
"""
from abc import ABCMeta, abstractmethod
import enum
from typing import Any, Dict, List, Optional
from . import common, errors
from . import common
class IDLBoundSpec(object):

View File

@ -30,7 +30,7 @@
import collections
import re
import typing
from typing import Type, TypeVar, cast, List, Set, Union, Optional
from typing import cast
from . import ast
from . import bson

View File

@ -31,8 +31,6 @@ BSON Type Information.
Utilities for validating bson types, etc.
"""
from typing import Dict, List
# Dictionary of BSON type Information
# scalar: True if the type is not an array or object
# bson_type_enum: The BSONType enum value for the given type

View File

@ -33,7 +33,6 @@ Classes which are shared among both the IDL idl.syntax and idl.AST trees.
import os
import string
from typing import Mapping
COMMAND_NAMESPACE_CONCATENATE_WITH_DB = "concatenate_with_db"
COMMAND_NAMESPACE_CONCATENATE_WITH_DB_OR_UUID = "concatenate_with_db_or_uuid"

View File

@ -35,7 +35,6 @@ import io
import logging
import os
import platform
from typing import Any, List
from . import binder
from . import errors

View File

@ -30,9 +30,7 @@
from abc import ABCMeta, abstractmethod
import textwrap
from typing import Any, List, Optional
from . import ast
from . import bson
from . import common
from . import writer

View File

@ -34,12 +34,11 @@ Support the code generation for enums
from abc import ABCMeta, abstractmethod
import json
import textwrap
from typing import cast, List, Optional, Union
from typing import cast
import bson
from . import ast
from . import common
from . import syntax
from . import writer

View File

@ -35,7 +35,6 @@ Common error handling code for IDL compiler.
import inspect
import os
import sys
from typing import List, Union
import yaml
from . import common

View File

@ -36,7 +36,7 @@ import sys
import textwrap
from abc import ABCMeta, abstractmethod
from enum import Enum
from typing import Callable, Dict, List, Mapping, Optional, Tuple, Union, cast
from typing import List, cast
from . import (
ast,

View File

@ -33,10 +33,7 @@ Only validates the document is syntatically correct, not semantically.
"""
from abc import ABCMeta, abstractmethod
import io
from typing import Any, Callable, Dict, List, Set, Tuple, Union
import yaml
from yaml import nodes
from . import common
from . import cpp_types

View File

@ -29,12 +29,10 @@
import textwrap
from abc import ABCMeta, abstractmethod
from typing import Optional, List
from . import ast
from . import common
from . import cpp_types
from . import writer
def _is_required_constructor_arg(field):

View File

@ -34,10 +34,9 @@ it follows the rules of the IDL, etc.
"""
import itertools
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union, cast
from typing import cast
from . import common
from . import errors
class IDLParsedSpec(object):

View File

@ -27,9 +27,6 @@
#
"""Text Writing Utilites."""
import io
from typing import Callable, List, Mapping
from . import common
# Number of spaces to indent code

View File

@ -33,7 +33,6 @@ Common error handling code for IDL compatibility checker.
"""
import inspect
import os
import sys
from typing import List, Optional

View File

@ -32,10 +32,10 @@ import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
import idl.ast # pylint: disable=wrong-import-position
import idl.binder # pylint: disable=wrong-import-position
import idl.compiler # pylint: disable=wrong-import-position
import idl.errors # pylint: disable=wrong-import-position
import idl.generator # pylint: disable=wrong-import-position
import idl.parser # pylint: disable=wrong-import-position
import idl.syntax # pylint: disable=wrong-import-position
import idl.ast # noqa: F401
import idl.binder # noqa: F401
import idl.compiler # noqa: F401
import idl.errors # noqa: F401
import idl.generator # noqa: F401
import idl.parser # noqa: F401
import idl.syntax # noqa: F401

View File

@ -32,7 +32,6 @@
import io
import textwrap
import unittest
from typing import Any, Dict
# import package so that it works regardless of whether we run as a module or file
if __package__ is None:

View File

@ -29,7 +29,6 @@
import io
import unittest
from typing import Any, Tuple
if __name__ == "testcase":
import sys

View File

@ -1,4 +1,3 @@
import os
import sys
EXPECTED_B_CPP = """

View File

@ -1,4 +1,3 @@
import os
import sys
EXPECTED_B_CPP = """// IWYU pragma: no_include "b.h"

View File

@ -1,5 +1,4 @@
import pathlib
import yaml
import json
import shutil
import os

View File

@ -11,7 +11,7 @@ import pathlib
import sys
import textwrap
from typing import Any, Callable, Dict, List, Optional, Tuple
from typing import Any, Dict, List, Optional, Tuple
import structlog

View File

@ -24,18 +24,14 @@
"""Unittests for the graph analyzer."""
import json
import sys
import unittest
import networkx
import libdeps.analyzer
from libdeps.graph import (
DependsReportTypes,
LibdepsGraph,
EdgeProps,
LinterTypes,
NodeProps,
CountTypes,
)
from generate_test_graphs import get_double_diamond_mock_graph, get_basic_mock_graph

View File

@ -35,14 +35,10 @@ web service if not debug.
import os
from pathlib import Path
import argparse
import shutil
import subprocess
import platform
import threading
import copy
import textwrap
import flask
from werkzeug.serving import is_running_from_reloader
from graph_visualizer_web_stack.flask.flask_backend import BackendServer

View File

@ -29,9 +29,7 @@ graph generated from SCons generate-libdeps-graph target. The graph
represents the dependency information between all binaries from the build.
"""
import sys
import textwrap
import copy
import json
import inspect
import functools

View File

@ -28,7 +28,6 @@ These are used for attributing data across the build scripts and analyzer script
"""
from enum import Enum, auto
from pathlib import Path
import json
import networkx

View File

@ -1,7 +1,6 @@
"""Base class and support functions for linters."""
from abc import ABCMeta, abstractmethod
from typing import Dict, List, Optional
class LinterBase(object, metaclass=ABCMeta):

View File

@ -2,7 +2,7 @@
import os
import sys
from typing import Tuple, List, Dict, Callable
from typing import Tuple, List, Callable
from git import Repo
import structlog

View File

@ -1,7 +1,6 @@
"""Mypy linter support module."""
import os
from typing import List
from . import base

View File

@ -4,7 +4,6 @@ import queue
import threading
import time
from multiprocessing import cpu_count
from typing import Any, Callable, List
def parallel_process(items, func):

View File

@ -1,7 +1,5 @@
"""PyDocStyle linter support module."""
from typing import List
from . import base

View File

@ -1,10 +1,6 @@
"""PyLint linter support module."""
import os
from typing import List
from . import base
from . import git
class PyLintLinter(base.LinterBase):

View File

@ -1,7 +1,5 @@
"""Ruff linter support module."""
from typing import List
from . import base

View File

@ -1,7 +1,5 @@
"""Ruff formatter support module."""
from typing import List
from . import base

View File

@ -1,8 +1,5 @@
"""Class to support running various linters in a common framework."""
from typing import Dict, List, Optional
import difflib
import logging
import os
import re

View File

@ -1,7 +1,5 @@
"""YAPF linter support module."""
from typing import List
from . import base

View File

@ -20,7 +20,6 @@ import lldb
try:
import bson
from bson import json_util
from bson.codec_options import CodecOptions
from bson.codec_options import DEFAULT_CODEC_OPTIONS
from bson import Decimal128
except ImportError:

View File

@ -17,7 +17,6 @@ import io
import json
import os
import re
import sys
import uuid
import argparse
import xml.etree.ElementTree as ET

View File

@ -7,8 +7,6 @@ Assembles json documents which are fed to the mongosymb library. See mongosymb.p
import argparse
import json
import re
import subprocess
import sys
import mongosymb

View File

@ -10,7 +10,6 @@ import time
import traceback
import uuid
import requests
import shutil
import tarfile
import subprocess

View File

@ -5,7 +5,6 @@ import argparse
import logging
import os
import sys
from typing import Dict, List
import structlog
@ -15,7 +14,6 @@ if __name__ == "__main__" and __package__ is None:
sys.path.append(mongo_dir)
# pylint: disable=wrong-import-position
from buildscripts.linter.filediff import gather_changed_files_for_lint
from buildscripts.linter import runner
from buildscripts.linter import ruffchecker
from buildscripts.linter import ruffformatter

View File

@ -6,7 +6,6 @@ import logging
import os
import re
import sys
import threading
from typing import List
# Get relative imports to work when the package is not installed on the PYTHONPATH.

View File

@ -9,3 +9,15 @@ from buildscripts.resmokelib import sighandler
from buildscripts.resmokelib import suitesconfig
from buildscripts.resmokelib import testing
from buildscripts.resmokelib import utils
__all__ = [
"config",
"errors",
"logging",
"parser",
"reportfile",
"sighandler",
"suitesconfig",
"testing",
"utils",
]

View File

@ -2,3 +2,5 @@
from buildscripts.resmokelib.core import network
from buildscripts.resmokelib.core import programs
__all__ = ["network", "programs"]

View File

@ -15,6 +15,8 @@ from buildscripts.resmokelib.multiversion.multiversion_service import (
from buildscripts.resmokelib.plugin import PluginInterface, Subcommand
from buildscripts.resmokelib.testing.suite import Suite
__all__ = ["MultiversionService", "MongoReleases", "MongoVersion"]
TEST_DISCOVERY_SUBCOMMAND = "test-discovery"
SUITECONFIG_SUBCOMMAND = "suiteconfig"

View File

@ -1,6 +1,5 @@
"""Generate mongod.conf and mongos.conf using config fuzzer."""
import json
import os.path
import shutil

View File

@ -4,3 +4,5 @@ from buildscripts.resmokelib.hang_analyzer import dumper
from buildscripts.resmokelib.hang_analyzer import process
from buildscripts.resmokelib.hang_analyzer import process_list
from buildscripts.resmokelib.hang_analyzer.hang_analyzer import HangAnalyzerPlugin
__all__ = ["dumper", "process", "process_list", "HangAnalyzerPlugin"]

View File

@ -22,7 +22,7 @@ from opentelemetry.trace.status import StatusCode
from buildscripts.resmokelib.hang_analyzer.dumper import Dumper
from buildscripts.resmokelib.setup_multiversion.download import DownloadError
from buildscripts.resmokelib.run import compare_start_time
from buildscripts.resmokelib.run.runtime_recorder import compare_start_time
from buildscripts.resmokelib.setup_multiversion.setup_multiversion import (
_DownloadOptions,
SetupMultiversion,

View File

@ -2,8 +2,10 @@
# Alias the built-in logging.Logger class for type checking arguments. Those interested in
# constructing a new Logger instance should use the loggers.new_logger() function instead.
from logging import Logger
from logging import Logger # noqa: F401
from buildscripts.resmokelib.logging import buildlogger
from buildscripts.resmokelib.logging import flush
from buildscripts.resmokelib.logging import loggers
__all__ = ["buildlogger", "flush", "loggers"]

View File

@ -20,7 +20,6 @@ def generate_normal_wt_parameters(rng, value):
def generate_special_eviction_configs(rng, ret, fuzzer_stress_mode, params):
"""Returns the value assigned the WiredTiger eviction parameters based on the fields of the parameters in config_fuzzer_wt_limits.py for special parameters (parameters with different assignment behaviors)."""
from buildscripts.resmokelib.config_fuzzer_wt_limits import target_bytes_max
# eviction_trigger is relative to eviction_target, so you have to leave them excluded to ensure
# eviction_trigger is fuzzed first.

View File

@ -25,8 +25,6 @@ def _try_import(module, name=None):
if _IS_WINDOWS:
# These modules are used on both sides for dumping python stacks.
import win32api
import win32event
# These modules are used on the 'server' side.
_try_import("ntsecuritycon")

View File

@ -4,7 +4,6 @@ import atexit
import collections
import copy
import datetime
import distutils.spawn
import importlib
import json
import logging
@ -41,7 +40,6 @@ from buildscripts.resmokelib.powercycle import powercycle_config, powercycle_con
# See https://docs.python.org/2/library/sys.html#sys.platform
from buildscripts.resmokelib.powercycle.lib.services import WindowsService, PosixService
from buildscripts.resmokelib.utils.filesystem import build_hygienic_bin_path
_IS_WINDOWS = sys.platform in ["win32", "cygwin"]
_IS_LINUX = sys.platform.startswith("linux")

View File

@ -1,6 +1,5 @@
"""Run the hang analyzer on the remote powercycle instance."""
import os
import re
from buildscripts.resmokelib.powercycle import powercycle_constants

View File

@ -33,7 +33,6 @@ from buildscripts.resmokelib.plugin import PluginInterface, Subcommand
from buildscripts.resmokelib.run import generate_multiversion_exclude_tags
from buildscripts.resmokelib.run import runtime_recorder
from buildscripts.resmokelib.run import list_tags
from buildscripts.resmokelib.run.runtime_recorder import compare_start_time
from buildscripts.resmokelib.suitesconfig import get_suite_files
from buildscripts.resmokelib.testing.docker_cluster_image_builder import build_images
from buildscripts.resmokelib.testing.suite import Suite

View File

@ -1,3 +1,5 @@
"""Setup multiversion mongodb module."""
from buildscripts.resmokelib.setup_multiversion.setup_multiversion import SetupMultiversionPlugin
__all__ = ["SetupMultiversionPlugin"]

View File

@ -6,7 +6,6 @@ import glob
import os
import shutil
import tarfile
import tempfile
import zipfile
import requests

View File

@ -18,7 +18,6 @@ import time
from typing import Optional, Dict, Any, List, NamedTuple
import distro
import structlog
import yaml
from requests.exceptions import HTTPError

View File

@ -2,3 +2,5 @@
from buildscripts.resmokelib.testing import executor
from buildscripts.resmokelib.testing import suite
__all__ = ["executor", "suite"]

View File

@ -15,10 +15,6 @@ from buildscripts.resmokelib.testing import hook_test_archival as archival
from buildscripts.resmokelib.testing import hooks as _hooks
from buildscripts.resmokelib.testing import job as _job
from buildscripts.resmokelib.testing import report as _report
from buildscripts.resmokelib.testing.docker_cluster_image_builder import (
DockerComposeImageBuilder,
build_images,
)
from buildscripts.resmokelib.testing.fixtures.interface import Fixture
from buildscripts.resmokelib.testing.hooks.interface import Hook
from buildscripts.resmokelib.testing.queue_element import (

View File

@ -8,6 +8,8 @@ from buildscripts.resmokelib.utils import autoloader as _autoloader
EXTERNAL_FIXTURE_CLASS = _ExternalFixture.REGISTERED_NAME
NOOP_FIXTURE_CLASS = _NoOpFixture.REGISTERED_NAME
__all__ = ["make_fixture"]
# We dynamically load all modules in the fixtures/ package so that any Fixture classes declared
# within them are automatically registered.
_autoloader.load_all_modules(name=__name__, path=__path__) # type: ignore

View File

@ -19,7 +19,7 @@ from buildscripts.resmokelib.testing.fixtures.shardedcluster import (
_RouterView,
)
from buildscripts.resmokelib.testing.fixtures.standalone import MongoDFixture
from buildscripts.resmokelib.utils import autoloader, default_if_none, pick_catalog_shard_node
from buildscripts.resmokelib.utils import default_if_none, pick_catalog_shard_node
MONGO_REPO_LOCATION = "."
FIXTURE_DIR = "buildscripts/resmokelib/testing/fixtures"

View File

@ -8,7 +8,6 @@ from buildscripts.resmokelib.core import network
from buildscripts.resmokelib.utils.dictionary import merge_dicts
from buildscripts.resmokelib.utils.history import HistoryDict, make_historic as _make_historic
from buildscripts.resmokelib.testing.fixtures import _builder
from buildscripts.resmokelib.testing.retry import with_naive_retry
class FixtureLib:

View File

@ -8,13 +8,9 @@ A resmoke suite's yml definition can enable launching mongot(s) enabled via the
mongod via a $changeStream.
"""
import os
import os.path
import time
import shutil
import uuid
import yaml
import pymongo
import pymongo.errors

View File

@ -1,14 +1,12 @@
"""Replica set fixture for executing JSTests against."""
import os.path
import random
import time
import bson
import pymongo
import pymongo.errors
import pymongo.write_concern
from pymongo import ReadPreference
from buildscripts.resmokelib.testing.fixtures import interface

View File

@ -14,8 +14,6 @@ import pymongo.errors
from buildscripts.resmokelib import logging
from buildscripts.resmokelib.testing.fixtures import interface
from buildscripts.resmokelib.testing.fixtures.fixturelib import FixtureLib
from buildscripts.resmokelib.testing.fixtures.interface import _FIXTURES
from buildscripts.resmokelib.testing.fixtures.mongot import MongoTFixture
from buildscripts.resmokelib.utils.history import HistoryDict

View File

@ -3,7 +3,6 @@
import signal
from buildscripts.resmokelib.testing.fixtures import interface
from buildscripts.resmokelib.testing.fixtures.fixturelib import FixtureLib
class YesFixture(interface.Fixture): # pylint: disable=abstract-method

View File

@ -8,6 +8,8 @@ before or after each suite.
from buildscripts.resmokelib.testing.hooks.interface import make_hook
from buildscripts.resmokelib.utils import autoloader as _autoloader
__all__ = ["make_hook"]
# We dynamically load all modules in the hooks/ package so that any Hook classes declared
# within them are automatically registered.
_autoloader.load_all_modules(name=__name__, path=__path__) # type: ignore

View File

@ -3,7 +3,6 @@
import sys
import threading
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.testing.hooks import jsfile

View File

@ -3,7 +3,7 @@
import copy
from buildscripts.resmokelib import utils
from buildscripts.resmokelib.testing.fixtures.fixturelib import with_naive_retry
from buildscripts.resmokelib.testing.retry import with_naive_retry
from buildscripts.resmokelib.testing.hooks import interface

View File

@ -3,8 +3,6 @@
A hook to set the given cluster server parameter on a replica set fixture.
"""
from time import sleep
from buildscripts.resmokelib.testing.hooks import interface

View File

@ -1,18 +1,15 @@
"""Test hook that periodically initial-syncs a node and steps it up."""
import collections
import os.path
import random
import threading
import time
from enum import Enum
from random import choice
import bson
import bson.errors
import pymongo.errors
import buildscripts.resmokelib.utils.filesystem as fs
from buildscripts.resmokelib import core
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface

View File

@ -6,11 +6,8 @@ environment.
from time import sleep
from bson.objectid import ObjectId
from pymongo import MongoClient
import os.path
import json
from buildscripts.resmokelib import config
from buildscripts.resmokelib.testing.hooks import interface
from buildscripts.resmokelib.testing.hooks import jsfile

View File

@ -1,14 +1,11 @@
"""Test hook that periodically makes the primary of a replica set step down."""
import collections
import copy
import os.path
import random
import threading
import time
import sys
import pymongo.errors
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.mongo_fuzzer_configs import generate_normal_mongo_parameters

View File

@ -4,7 +4,6 @@ import time
import multiprocessing
import os
import math
import sys
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.testing.hooks import interface

View File

@ -4,11 +4,7 @@ from __future__ import absolute_import
import os
from buildscripts.resmokelib import errors
from buildscripts.resmokelib import utils
from buildscripts.resmokelib.testing.hooks import interface
from buildscripts.resmokelib.testing.fixtures import replicaset
from buildscripts.resmokelib.testing.fixtures import shardedcluster
from . import interface
from . import jsfile

View File

@ -3,13 +3,9 @@
import collections
import os.path
import threading
import time
import pymongo.errors
import buildscripts.resmokelib.utils.filesystem as fs
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.testing.hooks import interface
ActionFiles = collections.namedtuple("ActionFiles", ["permitted", "idle_request", "idle_ack"])

View File

@ -1,8 +1,7 @@
import threading
from http.server import BaseHTTPRequestHandler, HTTPServer
from http.server import HTTPServer
from buildscripts.resmokelib.testing.hooks import interface
from buildscripts.resmokelib.testing.hooks import jsfile
from buildscripts.resmokelib.testing import queryable_server

View File

@ -8,7 +8,6 @@ import time
import pymongo.errors
import buildscripts.resmokelib.utils.filesystem as fs
from buildscripts.resmokelib import errors
from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface
from buildscripts.resmokelib.testing.fixtures import replicaset

View File

@ -5,7 +5,6 @@ This is used to support additional test status and timing information for the re
"""
import copy
import os
import threading
import time
import unittest

View File

@ -3,6 +3,8 @@
from buildscripts.resmokelib.testing.testcases.interface import make_test_case
from buildscripts.resmokelib.utils import autoloader as _autoloader
__all__ = ["make_test_case"]
# We dynamically load all modules in the testcases/ package so that any TestCase classes declared
# within them are automatically registered.
_autoloader.load_all_modules(name=__name__, path=__path__) # type: ignore

View File

@ -3,7 +3,6 @@
from typing import Optional
from buildscripts.resmokelib import logging
from buildscripts.resmokelib.testing.testcases import interface
from buildscripts.resmokelib.testing.testcases import jsrunnerfile

View File

@ -5,7 +5,6 @@ import os
from typing import Optional
from buildscripts.resmokelib import core, logging, utils
from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface
from buildscripts.resmokelib.testing.testcases import interface

Some files were not shown because too many files have changed in this diff Show More