diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-26 16:56:39 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-26 17:27:41 +0300 |
commit | 773d8152e2c134febe3d66ce0ce57dc3ddf4508f (patch) | |
tree | 0425e58057dfbe3bc5b94f7d1c71c82ea27b7e42 /tests/package | |
parent | pkgsets/test_*.py: modernize tests to pytest (diff) | |
download | pkgcore-773d8152e2c134febe3d66ce0ce57dc3ddf4508f.tar.gz pkgcore-773d8152e2c134febe3d66ce0ce57dc3ddf4508f.tar.bz2 pkgcore-773d8152e2c134febe3d66ce0ce57dc3ddf4508f.zip |
tests: remove various extensions
- instead of callback_logger & protect_logging please use caplog fixture
- instead of malleable_obj please use types.SimpleNamespace
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests/package')
-rw-r--r-- | tests/package/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/package/test_base.py b/tests/package/test_base.py index 4a577066..cd5465ca 100644 --- a/tests/package/test_base.py +++ b/tests/package/test_base.py @@ -1,7 +1,7 @@ from functools import partial +from types import SimpleNamespace from pkgcore.package import base -from pkgcore.test import malleable_obj from snakeoil.test import TestCase @@ -14,7 +14,7 @@ def fake_pkg(cat='dev-util', pkg='bsdiff', ver='1.0', **attrs): d["cpvstr"] = f"{cat}/{pkg}-{ver}" d['built'] = False d.update(attrs) - return malleable_obj(**d) + return SimpleNamespace(**d) class mixin: |