Skip to content

Commit

Permalink
Rename TestScanner to avoid clashes with pytest naming magic
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Aug 2, 2024
1 parent 5979d94 commit 6d8bc2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/python/test_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def __init__(self):
def __eq__(self, other):
return isinstance(other, MockDetector)

class TestScanner(_helios.Scanner):
class ExampleScanner(_helios.Scanner):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._max_nor = 10
Expand Down Expand Up @@ -1184,15 +1184,15 @@ def getHeadRelativeEmitterAttitudeByRef(self, idx=0):
class TestScannerMethods:
@pytest.fixture
def scanner(self):
return TestScanner()
return ExampleScanner()

def test_scanner_construction(self, scanner):
# Test default construction
assert scanner is not None

# Test parameterized construction
scanner1 = TestScanner()
scanner = TestScanner(scanner1)
scanner1 = ExampleScanner()
scanner = ExampleScanner(scanner1)
assert scanner.id == "SCANNER-ID"

def test_current_pulse_number(self, scanner):
Expand Down

0 comments on commit 6d8bc2c

Please sign in to comment.