master > master: code py - unit tests aktualisiert
This commit is contained in:
0
code/python/tests/thirdparty/__init__.py
vendored
Normal file
0
code/python/tests/thirdparty/__init__.py
vendored
Normal file
39
code/python/tests/thirdparty/unit.py
vendored
Normal file
39
code/python/tests/thirdparty/unit.py
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# IMPORTS
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# for unit tests:
|
||||
import anyio;
|
||||
from contextlib import nullcontext as does_not_raise;
|
||||
from pytest import fixture;
|
||||
from pytest_lazyfixture import lazy_fixture;
|
||||
from pytest import LogCaptureFixture;
|
||||
from pytest import mark;
|
||||
from pytest import raises as assert_raises;
|
||||
from testfixtures import LogCapture;
|
||||
from unittest import TestCase;
|
||||
from unittest.mock import patch;
|
||||
from unittest.mock import MagicMock;
|
||||
from unittest.mock import PropertyMock;
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# EXPORTS
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
__all__ = [
|
||||
'anyio',
|
||||
'does_not_raise',
|
||||
'fixture',
|
||||
'lazy_fixture',
|
||||
'LogCaptureFixture',
|
||||
'mark',
|
||||
'assert_raises',
|
||||
'LogCapture',
|
||||
'TestCase',
|
||||
'patch',
|
||||
'MagicMock',
|
||||
'PropertyMock',
|
||||
];
|
||||
Reference in New Issue
Block a user