Files
renderdoc/util/test/tests/GL/GL_Empty_Capture.py
T
baldurk 748e089b15 Fix remaining static analysis identified issues in python test code
* This includes:
  - Incorrect comparisons
  - Missing type annotations where it can't be inferred
  - Variable shadowing and bad use
  - Unused imports
  - asserts for non-None on types
* Passes clean on strict pyright checking except for
  `reportMissingParameterType`, `reportUnusedVariable`, and
  `reportOptionalMemberAccess` which are all too spammy and low value to be
  worth addressing.
2026-09-11 15:04:05 +01:00

15 lines
375 B
Python

import rdtest
class GL_Empty_Capture(rdtest.TestCase):
demos_test_name = 'GL_Empty_Capture'
demos_frame_cap = 100
def check_capture(self):
actions = self.controller.GetRootActions()
assert len(actions) == 1
assert 'End' in actions[0].customName
# EID 1 is the implicit context activation
assert actions[0].eventId == 2