Skip to content

Commit

Permalink
Tests: move core tests to pytest
Browse files Browse the repository at this point in the history
Use fixture workaround to be able to run the test with 4 configurations
Some cleanup might still be needed but this is a first attempt to migrate this part of the tests
  • Loading branch information
iMichka committed Sep 11, 2024
1 parent f1d0af4 commit 71e5eeb
Show file tree
Hide file tree
Showing 4 changed files with 674 additions and 617 deletions.
18 changes: 18 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2014-2017 Insight Software Consortium.
# Copyright 2004-2009 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt

import pytest


class Helpers:
@staticmethod
def _test_type_composition(type_, expected_compound, expected_base):
assert isinstance(type_, expected_compound)
assert isinstance(type_.base, expected_base)


@pytest.fixture
def helpers():
return Helpers
Loading

0 comments on commit 71e5eeb

Please sign in to comment.