SIGN IN SIGN UP

Migrate core tests to pytest style (#1990)

Convert tests/core/test_Core.py from unittest.TestCase to a plain
pytest-style class, following the pattern in tests/loss/test_ibot_loss.py:

- Drop the unittest.TestCase base class and unittest import
- Convert tearDown to an autouse yield fixture with identical cleanup
- Replace self.assert* calls with plain asserts
- Add type annotations to the helper methods (removes the file's three
  pre-existing mypy errors)

Core group of #1987.

Co-authored-by: fruet <90271657+gabrielfruet@users.noreply.github.com>
J
Jayashanker Padishala committed
e68262b5442cd137835b0be0d14aa4e050366a8b
Parent: 8e6f709
Committed by GitHub <noreply@github.com> on 7/28/2026, 8:51:20 PM