Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit ad8e9de

Browse files
committed
Converted to pytest.
1 parent a470244 commit ad8e9de

3 files changed

Lines changed: 60 additions & 0 deletions

File tree

tests/.coveragerc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[run]
2+
branch = true
3+
4+
[report]
5+
skip_covered = True
6+
skip_empty = True
7+
8+
[html]
9+
directory = .cov
10+
11+
[xml]
12+
output = coverage.xml

tests/__init__.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# =============================================================================
2+
# _____ _ _ _ _ ___
3+
# _ __ _ |_ _|__ _ __ _ __ ___ (_)_ __ __ _| | | | |_ _|
4+
# | '_ \| | | || |/ _ \ '__| '_ ` _ \| | '_ \ / _` | | | | || |
5+
# | |_) | |_| || | __/ | | | | | | | | | | | (_| | | |_| || |
6+
# | .__/ \__, ||_|\___|_| |_| |_| |_|_|_| |_|\__,_|_|\___/|___|
7+
# |_| |___/
8+
# =============================================================================
9+
# Authors: Patrick Lehmann
10+
#
11+
# Python unittest: Helper functions for unittests
12+
#
13+
# Description:
14+
# ------------------------------------
15+
# TODO
16+
#
17+
# License:
18+
# ============================================================================
19+
# Copyright 2017-2021 Patrick Lehmann - Bötzingen, Germany
20+
# Copyright 2007-2016 Patrick Lehmann - Dresden, Germany
21+
#
22+
# Licensed under the Apache License, Version 2.0 (the "License");
23+
# you may not use this file except in compliance with the License.
24+
# You may obtain a copy of the License at
25+
#
26+
# http://www.apache.org/licenses/LICENSE-2.0
27+
#
28+
# Unless required by applicable law or agreed to in writing, software
29+
# distributed under the License is distributed on an "AS IS" BASIS,
30+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
# See the License for the specific language governing permissions and
32+
# limitations under the License.
33+
#
34+
# SPDX-License-Identifier: Apache-2.0
35+
# ============================================================================
36+
#
37+
"""
38+
pyAttributes
39+
############
40+
41+
:copyright: Copyright 2007-2020 Patrick Lehmann - Bötzingen, Germany
42+
:license: Apache License, Version 2.0
43+
"""

tests/pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pytest]
2+
# Don't set 'python_classes = *' otherwise, pytest doesn't search for classes
3+
# derived from unittest.Testcase
4+
python_files = *
5+
python_functions = test_*

0 commit comments

Comments
 (0)