Skip to content

Commit

Permalink
prevent base class from being detected as a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Jul 30, 2024
1 parent 4c08ea3 commit 7e103de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_resources_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@


class ResourceBaseTestCase(FullIntegrationTestCase):
__test__ = True

def _device_type_definitions(self) -> Optional[Tuple[WorkerDeviceTypeDefinition, ...]]:
return (
WorkerDeviceTypeDefinition('gapauu', (
Expand Down Expand Up @@ -58,6 +56,8 @@ def _minimal_helper_idle_to_ensure(self):


class TestDeviceRequirement(ResourceBaseTestCase):
__test__ = True

@classmethod
def _initial_db_file(cls) -> str:
return 'data/test_resources.db'
Expand Down Expand Up @@ -117,6 +117,8 @@ async def _additional_checks_during_run(self):


class TestResourceRequirement(ResourceBaseTestCase):
__test__ = True

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.__reached_full_cpu = False
Expand Down

0 comments on commit 7e103de

Please sign in to comment.