Skip to content

Mark non-test classes with __test__ = False attribute #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions tests/searchcommands/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

@Configuration()
class TestSearchCommand(SearchCommand):
__test__ = False

boolean = Option(
doc="""
**Syntax:** **boolean=***<value>*
Expand Down
4 changes: 4 additions & 0 deletions tests/searchcommands/test_internals_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ def _load_chunks(self, ifile):


class TestRecorder:
__test__ = False

def __init__(self, test_case):
self._test_case = test_case
self._output = None
Expand Down Expand Up @@ -389,6 +391,8 @@ def _record(*args, **kwargs):


class Test:
__test__ = False

def __init__(self, fieldnames, data_generators):
TestCase.__init__(self)
self._data_generators = list(
Expand Down
4 changes: 4 additions & 0 deletions tests/searchcommands/test_search_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def build_command_input(getinfo_metadata, execute_metadata, execute_body):

@Configuration()
class TestCommand(SearchCommand):
__test__ = False

required_option_1 = Option(require=True)
required_option_2 = Option(require=True)

Expand Down Expand Up @@ -99,6 +101,8 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings):

@Configuration()
class TestStreamingCommand(StreamingCommand):
__test__ = False

Comment on lines 103 to +105

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is not being referenced anywhere, wondering if we could remove it (could always bring it back from the version control if needed)

def stream(self, records):
serial_number = 0
for record in records:
Expand Down
Loading