Skip to content

Commit 6eb7b9e

Browse files
authored
Merge pull request CastXML#193 from CastXML/pytest10
Tests: move core tests to pytest
2 parents f1d0af4 + 9334f91 commit 6eb7b9e

File tree

4 files changed

+693
-617
lines changed

4 files changed

+693
-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)