aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-08-26 16:56:39 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-08-26 17:27:41 +0300
commit773d8152e2c134febe3d66ce0ce57dc3ddf4508f (patch)
tree0425e58057dfbe3bc5b94f7d1c71c82ea27b7e42 /tests/package
parentpkgsets/test_*.py: modernize tests to pytest (diff)
downloadpkgcore-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.py4
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: