Skip to content

Commit 265e4bf

Browse files
committed
Tests: move core tests to pytest
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
1 parent f1d0af4 commit 265e4bf

File tree

4 files changed

+687
-617
lines changed

4 files changed

+687
-617
lines changed

tests/conftest.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2014-2017 Insight Software Consortium.
2+
# Copyright 2004-2009 Roman Yakovenko.
3+
# Distributed under the Boost Software License, Version 1.0.
4+
# See http://www.boost.org/LICENSE_1_0.txt
5+
6+
import pytest
7+
8+
9+
class Helpers:
10+
@staticmethod
11+
def _test_type_composition(type_, expected_compound, expected_base):
12+
assert isinstance(type_, expected_compound)
13+
assert isinstance(type_.base, expected_base)
14+
15+
16+
@pytest.fixture
17+
def helpers():
18+
return Helpers

0 commit comments

Comments
 (0)