aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-02-02 22:29:59 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-02-02 22:30:06 +0200
commit730ac96f74f39643ff6b9f584901516eddeddaa4 (patch)
treeaab2296fb27f4c4ca476bc40b505b6822bf9dbbd /tests
parentebuild/test_eapi: fix tests artifacts in EBD_PATH (diff)
downloadpkgcore-730ac96f74f39643ff6b9f584901516eddeddaa4.tar.gz
pkgcore-730ac96f74f39643ff6b9f584901516eddeddaa4.tar.bz2
pkgcore-730ac96f74f39643ff6b9f584901516eddeddaa4.zip
reblackify the code
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/cache/test_base.py2
-rw-r--r--tests/config/test_basics.py1
-rw-r--r--tests/ebuild/test_conditionals.py1
-rw-r--r--tests/ebuild/test_cpv.py1
-rw-r--r--tests/ebuild/test_digest.py1
-rw-r--r--tests/ebuild/test_ebuild_src.py3
-rw-r--r--tests/ebuild/test_formatter.py5
-rw-r--r--tests/ebuild/test_misc.py1
-rw-r--r--tests/ebuild/test_profiles.py6
-rw-r--r--tests/fetch/test_init.py2
-rw-r--r--tests/fs/test_contents.py1
-rw-r--r--tests/fs/test_fs.py2
-rw-r--r--tests/fs/test_ops.py1
-rw-r--r--tests/merge/test_engine.py1
-rw-r--r--tests/merge/test_triggers.py12
-rw-r--r--tests/package/test_base.py2
-rw-r--r--tests/package/test_metadata.py1
-rw-r--r--tests/package/test_mutated.py1
-rw-r--r--tests/pkgsets/test_filelist.py2
-rw-r--r--tests/pkgsets/test_installed.py1
-rw-r--r--tests/repository/test_multiplex.py1
-rw-r--r--tests/resolver/test_pigeonholes.py1
-rw-r--r--tests/restrictions/test_boolean.py6
-rw-r--r--tests/restrictions/test_delegated.py1
-rw-r--r--tests/restrictions/test_packages.py3
-rw-r--r--tests/restrictions/test_restriction.py2
-rw-r--r--tests/restrictions/test_values.py7
-rw-r--r--tests/scripts/test_patom.py1
-rw-r--r--tests/scripts/test_pclean.py1
-rw-r--r--tests/scripts/test_pclonecache.py2
-rw-r--r--tests/scripts/test_pconfig.py6
-rw-r--r--tests/scripts/test_pebuild.py2
-rw-r--r--tests/scripts/test_pmaint.py7
-rw-r--r--tests/scripts/test_pplugincache.py1
-rw-r--r--tests/scripts/test_pquery.py2
-rw-r--r--tests/sync/test_rsync.py2
-rw-r--r--tests/test_eq_hash_inheritance.py1
-rw-r--r--tests/test_slot_shadowing.py1
38 files changed, 0 insertions, 94 deletions
diff --git a/tests/cache/test_base.py b/tests/cache/test_base.py
index a613bebb..dc6b1fa0 100644
--- a/tests/cache/test_base.py
+++ b/tests/cache/test_base.py
@@ -52,7 +52,6 @@ class DictCache(base):
class DictCacheBulk(bulk):
-
cleanse_keys = True
__has_working_commit__ = True
@@ -82,7 +81,6 @@ class DictCacheBulk(bulk):
class TestBase:
-
cache_keys = ("foo", "_eclasses_")
def get_db(self, readonly=False):
diff --git a/tests/config/test_basics.py b/tests/config/test_basics.py
index 7dfc88db..e04cc704 100644
--- a/tests/config/test_basics.py
+++ b/tests/config/test_basics.py
@@ -409,7 +409,6 @@ class TestConvertString:
class TestConvertAsIs:
-
source = {
"str": "tests",
"bool": True,
diff --git a/tests/ebuild/test_conditionals.py b/tests/ebuild/test_conditionals.py
index a0101dc3..cce9efdd 100644
--- a/tests/ebuild/test_conditionals.py
+++ b/tests/ebuild/test_conditionals.py
@@ -343,7 +343,6 @@ class TestDepSetEvaluate(base):
"",
),
):
-
result = vals[0]
src = vals[1]
use, tristate, kls = [], None, str
diff --git a/tests/ebuild/test_cpv.py b/tests/ebuild/test_cpv.py
index e33fe20b..e014d751 100644
--- a/tests/ebuild/test_cpv.py
+++ b/tests/ebuild/test_cpv.py
@@ -19,7 +19,6 @@ def generate_misc_sufs():
class TestCPV:
-
good_cats = (
"dev-util",
"dev+",
diff --git a/tests/ebuild/test_digest.py b/tests/ebuild/test_digest.py
index be4985b2..4bb9ae1e 100644
--- a/tests/ebuild/test_digest.py
+++ b/tests/ebuild/test_digest.py
@@ -50,7 +50,6 @@ for x in pure_manifest2.split("\n"):
class TestManifest:
-
convert_source = staticmethod(lambda x: x)
def get_manifest(self, data):
diff --git a/tests/ebuild/test_ebuild_src.py b/tests/ebuild/test_ebuild_src.py
index 9d07d55f..f34c9c94 100644
--- a/tests/ebuild/test_ebuild_src.py
+++ b/tests/ebuild/test_ebuild_src.py
@@ -16,7 +16,6 @@ from .test_eclass_cache import FakeEclassCache
class TestBase:
-
kls = ebuild_src.base
def get_pkg(
@@ -577,7 +576,6 @@ class TestBase:
class TestPackage(TestBase):
-
kls = ebuild_src.package
def get_pkg(self, *args, **kwds):
@@ -619,7 +617,6 @@ class TestPackage(TestBase):
class TestPackageFactory:
-
kls = ebuild_src.package_factory
def mkinst(
diff --git a/tests/ebuild/test_formatter.py b/tests/ebuild/test_formatter.py
index 4f5cf424..170fb8ca 100644
--- a/tests/ebuild/test_formatter.py
+++ b/tests/ebuild/test_formatter.py
@@ -72,7 +72,6 @@ class BaseFormatterTest:
return kls(**kwargs)
def assertOut(self, *args, **kwargs):
-
strings = []
objects = []
@@ -121,7 +120,6 @@ class BaseFormatterTest:
class TestBasicFormatter(BaseFormatterTest):
-
formatterClass = BasicFormatter
def test_install(self):
@@ -140,7 +138,6 @@ class TestBasicFormatter(BaseFormatterTest):
class TestPkgcoreFormatter(BaseFormatterTest):
-
formatterClass = PkgcoreFormatter
def test_install(self):
@@ -187,7 +184,6 @@ class TestPkgcoreFormatter(BaseFormatterTest):
class CountingFormatterTest(BaseFormatterTest):
-
endprefix = ""
endsuffix = "\n"
@@ -350,7 +346,6 @@ class CountingFormatterTest(BaseFormatterTest):
class TestPortageFormatter(BaseFormatterTest):
-
formatterClass = PortageFormatter
def setup_method(self):
diff --git a/tests/ebuild/test_misc.py b/tests/ebuild/test_misc.py
index 97820890..056271cd 100644
--- a/tests/ebuild/test_misc.py
+++ b/tests/ebuild/test_misc.py
@@ -7,7 +7,6 @@ AlwaysFalse = packages.AlwaysFalse
class Test_collapsed_restrict_to_data:
-
kls = misc.collapsed_restrict_to_data
def assert_state(self, obj, defaults=(), freeform=(), atoms=()):
diff --git a/tests/ebuild/test_profiles.py b/tests/ebuild/test_profiles.py
index 7957c7c5..31549d5d 100644
--- a/tests/ebuild/test_profiles.py
+++ b/tests/ebuild/test_profiles.py
@@ -92,7 +92,6 @@ empty = ((), ())
class TestPmsProfileNode(profile_mixin):
-
klass = staticmethod(ProfileNode)
profile = "default"
@@ -770,7 +769,6 @@ class TestPmsProfileNode(profile_mixin):
class TestPortage1ProfileNode(TestPmsProfileNode):
-
can_be_dirs = frozenset(
[
"package.accept_keywords",
@@ -818,7 +816,6 @@ class TestPortage1ProfileNode(TestPmsProfileNode):
class TestPortage2ProfileNode(TestPortage1ProfileNode):
-
profile = os.path.join("profiles", "default")
def setup_repo(self, tmp_path):
@@ -832,7 +829,6 @@ class TestPortage2ProfileNode(TestPortage1ProfileNode):
class TestProfileBashrcProfileNode(TestPmsProfileNode):
-
profile = os.path.join("profiles", "default")
def assert_pkg_bashrc(self, actual, expected):
@@ -895,7 +891,6 @@ class TestProfileBashrcProfileNode(TestPmsProfileNode):
class TestProfileSetProfileNode(TestPmsProfileNode):
-
profile = os.path.join("profiles", "default")
def setup_repo(self, tmp_path):
@@ -914,7 +909,6 @@ class TestProfileSetProfileNode(TestPmsProfileNode):
class TestOnDiskProfile(profile_mixin):
-
# use a derivative, using the inst caching disabled ProfileNode kls
# from above
class kls(profiles.OnDiskProfile):
diff --git a/tests/fetch/test_init.py b/tests/fetch/test_init.py
index cf9cbbaf..9c5d21e3 100644
--- a/tests/fetch/test_init.py
+++ b/tests/fetch/test_init.py
@@ -30,7 +30,6 @@ class TestFetchable:
class TestMirror:
-
kls = fetch.mirror
default_mirrors = ["http://foon", "ftp://spoon"]
@@ -59,7 +58,6 @@ class TestMirror:
class TestDefaultMirror(TestMirror):
-
kls = fetch.default_mirror
diff --git a/tests/fs/test_contents.py b/tests/fs/test_contents.py
index e039314d..5896d797 100644
--- a/tests/fs/test_contents.py
+++ b/tests/fs/test_contents.py
@@ -363,7 +363,6 @@ class TestContentsSet:
class Test_offset_rewriting:
-
change_offset = staticmethod(contents.change_offset_rewriter)
offset_insert = staticmethod(contents.offset_rewriter)
diff --git a/tests/fs/test_fs.py b/tests/fs/test_fs.py
index 605be48f..30f844f6 100644
--- a/tests/fs/test_fs.py
+++ b/tests/fs/test_fs.py
@@ -7,7 +7,6 @@ from snakeoil.osutils import normpath, pjoin
class base:
-
kls = None
def make_obj(self, location="/tmp/foo", **kwds):
@@ -98,7 +97,6 @@ class base:
class Test_fsFile(base):
-
kls = fs.fsFile
def test_init(self):
diff --git a/tests/fs/test_ops.py b/tests/fs/test_ops.py
index 578ddf5c..fcc05816 100644
--- a/tests/fs/test_ops.py
+++ b/tests/fs/test_ops.py
@@ -117,7 +117,6 @@ class TestCopyFile:
class ContentsMixin:
-
entries_norm1 = {
"file1": ["reg"],
"dir": ["dir"],
diff --git a/tests/merge/test_engine.py b/tests/merge/test_engine.py
index 35421a4c..f4650860 100644
--- a/tests/merge/test_engine.py
+++ b/tests/merge/test_engine.py
@@ -18,7 +18,6 @@ class fake_pkg:
class TestMergeEngineCsets:
-
simple_cset = list(fsFile(x) for x in ("/foon", "/usr/dar", "/blah"))
simple_cset.extend(fsDir(x) for x in ("/usr", "/usr/lib"))
simple_cset.append(fsSymlink("/usr/lib/blah", "../../blah"))
diff --git a/tests/merge/test_triggers.py b/tests/merge/test_triggers.py
index 454eeb5b..08d0402d 100644
--- a/tests/merge/test_triggers.py
+++ b/tests/merge/test_triggers.py
@@ -28,7 +28,6 @@ def make_fake_reporter(**kwargs):
class TestBase:
-
kls = fake_trigger
def mk_trigger(self, kls=None, **kwargs):
@@ -128,7 +127,6 @@ def test_module_constants():
class Test_mtime_watcher:
-
kls = triggers.mtime_watcher
def test_identification(self, tmp_path):
@@ -212,7 +210,6 @@ class Test_mtime_watcher:
def castrate_trigger(base_kls, **kwargs):
class castrated_trigger(base_kls):
-
enable_regen = False
def __init__(self, *args2, **kwargs2):
@@ -245,7 +242,6 @@ class trigger_mixin:
not sys.platform.startswith("linux"), reason="supported on Linux only"
)
class Test_ldconfig(trigger_mixin):
-
# use the kls indirection for when *bsd version of ldconfig trigger
# is derived; will be pretty much the same, sans the trigger call.
@@ -316,7 +312,6 @@ class Test_ldconfig(trigger_mixin):
class TestInfoRegen(trigger_mixin):
-
raw_kls = triggers.InfoRegen
@property
@@ -385,7 +380,6 @@ class TestInfoRegen(trigger_mixin):
reason="can't verify regen behavior due to install-info not being available",
)
def test_trigger(self, tmp_path):
-
with os_environ("PATH"):
self.engine.phase = "post_merge"
assert self.trigger(self.engine, {}) is None
@@ -438,7 +432,6 @@ class TestInfoRegen(trigger_mixin):
class single_attr_change_base:
-
kls = triggers.fix_uid_perms
attr = None
@@ -498,19 +491,16 @@ class single_attr_change_base:
class Test_fix_uid_perms(single_attr_change_base):
-
kls = triggers.fix_uid_perms
attr = "uid"
class Test_fix_gid_perms(single_attr_change_base):
-
kls = triggers.fix_gid_perms
attr = "gid"
class Test_fix_set_bits(single_attr_change_base):
-
kls = triggers.fix_set_bits
trigger = property(lambda self: self.kls())
attr = "mode"
@@ -523,7 +513,6 @@ class Test_fix_set_bits(single_attr_change_base):
class Test_detect_world_writable(single_attr_change_base):
-
kls = triggers.detect_world_writable
_trigger_override = None
@@ -585,7 +574,6 @@ class Test_detect_world_writable(single_attr_change_base):
class TestPruneFiles:
-
kls = triggers.PruneFiles
def test_metadata(self):
diff --git a/tests/package/test_base.py b/tests/package/test_base.py
index 7c2b987f..f189c8a2 100644
--- a/tests/package/test_base.py
+++ b/tests/package/test_base.py
@@ -29,7 +29,6 @@ class mixin:
class TestBasePkg(mixin):
-
mk_inst = kls = staticmethod(base.base)
def test_properties(self):
@@ -57,7 +56,6 @@ class TestBasePkg(mixin):
class TestWrapper(mixin):
-
kls = base.wrapper
def mk_inst(self, overrides=None, **kwds):
diff --git a/tests/package/test_metadata.py b/tests/package/test_metadata.py
index 90e3857f..22e1ddd3 100644
--- a/tests/package/test_metadata.py
+++ b/tests/package/test_metadata.py
@@ -20,7 +20,6 @@ def make_pkg_kls(attrs=(), callbacks={}):
__setattr__ = object.__setattr__
class metadata_pkg(metadata.DeriveMetadataKls(simple_pkg)):
-
__slots__ = ()
def _fetch_metadata(self):
diff --git a/tests/package/test_mutated.py b/tests/package/test_mutated.py
index 7d845f66..32c0a3fd 100644
--- a/tests/package/test_mutated.py
+++ b/tests/package/test_mutated.py
@@ -12,7 +12,6 @@ def passthru(val, self):
class FakePkg(base):
-
# XXX why isn't this using existing classes?
__slotting_intentionally_disabled__ = True
diff --git a/tests/pkgsets/test_filelist.py b/tests/pkgsets/test_filelist.py
index 74158c2e..e3a00057 100644
--- a/tests/pkgsets/test_filelist.py
+++ b/tests/pkgsets/test_filelist.py
@@ -7,7 +7,6 @@ from pkgcore.pkgsets import filelist
class TestFileList:
-
kls = staticmethod(filelist.FileList)
@property
@@ -73,7 +72,6 @@ class TestFileList:
class TestWorldFile(TestFileList):
-
kls = staticmethod(filelist.WorldFile)
def test_add(self, tmp_path):
diff --git a/tests/pkgsets/test_installed.py b/tests/pkgsets/test_installed.py
index 8b4f7ec5..990388ab 100644
--- a/tests/pkgsets/test_installed.py
+++ b/tests/pkgsets/test_installed.py
@@ -3,7 +3,6 @@ from pkgcore.repository.util import SimpleTree
class FakePkg:
-
package_is_real = True
is_supported = True
diff --git a/tests/repository/test_multiplex.py b/tests/repository/test_multiplex.py
index 155e2d22..5977241d 100644
--- a/tests/repository/test_multiplex.py
+++ b/tests/repository/test_multiplex.py
@@ -9,7 +9,6 @@ rev_sorted = partial(sorted, reverse=True)
class TestMultiplex:
-
kls = staticmethod(tree)
tree1_pkgs = (
("dev-util/diffball", ["1.0", "0.7"]),
diff --git a/tests/resolver/test_pigeonholes.py b/tests/resolver/test_pigeonholes.py
index 80123f15..c847c0f4 100644
--- a/tests/resolver/test_pigeonholes.py
+++ b/tests/resolver/test_pigeonholes.py
@@ -6,7 +6,6 @@ from .test_choice_point import fake_package
class fake_blocker(restriction.base):
-
__slots__ = ("key", "blocks")
def __init__(self, key, blocks=()):
diff --git a/tests/restrictions/test_boolean.py b/tests/restrictions/test_boolean.py
index 2fd3e004..bb83e713 100644
--- a/tests/restrictions/test_boolean.py
+++ b/tests/restrictions/test_boolean.py
@@ -7,7 +7,6 @@ false = restriction.AlwaysBool(node_type="foo", negate=False)
class AlwaysForcableBool(boolean.base):
-
__slots__ = ()
def force_True(self, action, *args):
@@ -17,7 +16,6 @@ class AlwaysForcableBool(boolean.base):
class base:
-
kls = None
def test_invalid_restrictions(self):
@@ -70,7 +68,6 @@ class base:
class TestBase(base):
-
kls = boolean.base
def test_base(self):
@@ -89,7 +86,6 @@ class TestBase(base):
# TODO these tests are way too limited
class TestAndRestriction(base):
-
kls = boolean.AndRestriction
def test_match(self):
@@ -132,7 +128,6 @@ class TestAndRestriction(base):
class TestOrRestriction(base):
-
kls = boolean.OrRestriction
def test_match(self):
@@ -188,7 +183,6 @@ class TestOrRestriction(base):
class TestJustOneRestriction(base):
-
kls = boolean.JustOneRestriction
def test_match(self):
diff --git a/tests/restrictions/test_delegated.py b/tests/restrictions/test_delegated.py
index 4ffdd1ab..10eff707 100644
--- a/tests/restrictions/test_delegated.py
+++ b/tests/restrictions/test_delegated.py
@@ -5,7 +5,6 @@ from .utils import TestRestriction
class Test_delegate(TestRestriction):
-
kls = delegate
def test_it(self):
diff --git a/tests/restrictions/test_packages.py b/tests/restrictions/test_packages.py
index e5d4df07..4288b3e6 100644
--- a/tests/restrictions/test_packages.py
+++ b/tests/restrictions/test_packages.py
@@ -15,7 +15,6 @@ class AlwaysSelfIntersect(values.base):
class TestPackageRestriction(TestRestriction):
-
if packages.PackageRestriction is packages.PackageRestriction:
kls = packages.PackageRestriction
else:
@@ -101,7 +100,6 @@ class TestPackageRestriction(TestRestriction):
class values_callback(values.base):
-
__slots__ = ("callback",)
def __init__(self, callback):
@@ -118,7 +116,6 @@ class values_callback(values.base):
class TestPackageRestrictionMulti:
-
if packages.PackageRestriction is packages.PackageRestriction:
kls = packages.PackageRestrictionMulti
else:
diff --git a/tests/restrictions/test_restriction.py b/tests/restrictions/test_restriction.py
index 893c722a..b1f8a5d8 100644
--- a/tests/restrictions/test_restriction.py
+++ b/tests/restrictions/test_restriction.py
@@ -20,7 +20,6 @@ class SillyBool(restriction.base):
class TestBase(TestRestriction):
-
bool_kls = SillyBool
def test_base(self):
@@ -48,7 +47,6 @@ class TestBase(TestRestriction):
class TestAlwaysBool(TestRestriction):
-
bool_kls = partial(restriction.AlwaysBool, "foo")
def test_true(self):
diff --git a/tests/restrictions/test_values.py b/tests/restrictions/test_values.py
index a971e69d..4365fda0 100644
--- a/tests/restrictions/test_values.py
+++ b/tests/restrictions/test_values.py
@@ -56,7 +56,6 @@ class TestGetAttr(TestRestriction):
class TestStrRegex(TestRestriction):
-
kls = values.StrRegex
@pytest.mark.parametrize("negated", (True, False))
@@ -109,7 +108,6 @@ class TestStrRegex(TestRestriction):
class TestStrExactMatch(TestRestriction):
-
if values.StrExactMatch is values.StrExactMatch:
kls = values.StrExactMatch
else:
@@ -183,7 +181,6 @@ class TestStrExactMatch(TestRestriction):
class TestStrGlobMatch(TestRestriction):
-
kls = values.StrGlobMatch
@pytest.mark.parametrize("negated", (True, False))
@@ -269,7 +266,6 @@ class TestStrGlobMatch(TestRestriction):
class TestEqualityMatch(TestRestriction):
-
kls = staticmethod(values.EqualityMatch)
@pytest.mark.parametrize("negated", (True, False))
@@ -311,7 +307,6 @@ class TestEqualityMatch(TestRestriction):
class TestContainmentMatch(TestRestriction):
-
kls = partial(values.ContainmentMatch, disable_inst_caching=True)
def test_match(self):
@@ -321,7 +316,6 @@ class TestContainmentMatch(TestRestriction):
(list(range(10)), set(range(10)), True),
(set(range(10)), list(range(10)), True),
):
-
for negated in (False, True):
self.assertMatches(
self.kls(x, negate=negated, disable_inst_caching=True),
@@ -401,7 +395,6 @@ class TestFunctionRestriction:
class TestAnyMatch:
-
# Most of AnyMatch is tested through test_restriction.
def test_force(self):
diff --git a/tests/scripts/test_patom.py b/tests/scripts/test_patom.py
index 499030de..5c0dbcd3 100644
--- a/tests/scripts/test_patom.py
+++ b/tests/scripts/test_patom.py
@@ -5,7 +5,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class TestFormat(ArgParseMixin):
-
_argparser = patom.argparser
def test_empty(self):
diff --git a/tests/scripts/test_pclean.py b/tests/scripts/test_pclean.py
index 2b13eb01..4ffcbb51 100644
--- a/tests/scripts/test_pclean.py
+++ b/tests/scripts/test_pclean.py
@@ -3,7 +3,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class TestCommandline(ArgParseMixin):
-
_argparser = pclean.argparser
suppress_domain = True
diff --git a/tests/scripts/test_pclonecache.py b/tests/scripts/test_pclonecache.py
index 0509a8f8..5689f662 100644
--- a/tests/scripts/test_pclonecache.py
+++ b/tests/scripts/test_pclonecache.py
@@ -5,7 +5,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class Cache:
-
pkgcore_config_type = ConfigHint(typename="cache")
def __init__(self, readonly=True):
@@ -13,7 +12,6 @@ class Cache:
class TestCommandline(ArgParseMixin):
-
_argparser = pclonecache.argparser
def test_parser(self):
diff --git a/tests/scripts/test_pconfig.py b/tests/scripts/test_pconfig.py
index e11b502d..c9cd40eb 100644
--- a/tests/scripts/test_pconfig.py
+++ b/tests/scripts/test_pconfig.py
@@ -50,7 +50,6 @@ def increment(inc=()):
class DescribeClassTest(ArgParseMixin):
-
_argparser = pconfig.describe_class
def test_parser(self, capsys):
@@ -95,7 +94,6 @@ class DescribeClassTest(ArgParseMixin):
class TestClasses(ArgParseMixin):
-
_argparser = pconfig.classes
def test_classes(self):
@@ -147,7 +145,6 @@ class TestClasses(ArgParseMixin):
class TestDump(ArgParseMixin):
-
_argparser = pconfig.dump
def test_dump(self):
@@ -261,7 +258,6 @@ class TestDump(ArgParseMixin):
class TestUncollapsable(ArgParseMixin):
-
_argparser = pconfig.uncollapsable
def test_uncollapsable(self):
@@ -282,7 +278,6 @@ class TestUncollapsable(ArgParseMixin):
class TestConfigurables(ArgParseMixin):
-
_argparser = pconfig.configurables
def test_configurables(self):
@@ -309,7 +304,6 @@ class WeirdSection(basics.ConfigSection):
class TestDumpUncollapsed(ArgParseMixin):
-
_argparser = pconfig.dump_uncollapsed
def test_dump_uncollapsed(self):
diff --git a/tests/scripts/test_pebuild.py b/tests/scripts/test_pebuild.py
index 6a99c4ca..8cc0ce47 100644
--- a/tests/scripts/test_pebuild.py
+++ b/tests/scripts/test_pebuild.py
@@ -6,7 +6,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class FakeDomain:
-
pkgcore_config_type = ConfigHint(types={"repo": "ref:repo"}, typename="domain")
def __init__(self, repo):
@@ -37,7 +36,6 @@ domain_config = basics.HardCodedConfigSection(
class TestCommandline(ArgParseMixin):
-
_argparser = pebuild.argparser
def test_parser(self):
diff --git a/tests/scripts/test_pmaint.py b/tests/scripts/test_pmaint.py
index 417b7a10..945ef0dd 100644
--- a/tests/scripts/test_pmaint.py
+++ b/tests/scripts/test_pmaint.py
@@ -33,7 +33,6 @@ class fake_operations(operations):
class FakeRepo(util.SimpleTree):
-
operations_kls = fake_operations
def __init__(self, data, frozen=False, livefs=False, repo_id=None):
@@ -54,7 +53,6 @@ def make_repo_config(repo_data, livefs=False, frozen=False, repo_id=None):
class FakeDomain:
-
pkgcore_config_type = ConfigHint(
types={"repos": "refs:repo", "binpkg": "refs:repo", "vdb": "refs:repo"},
typename="domain",
@@ -103,7 +101,6 @@ class FakeSyncer(base.Syncer):
class SyncableRepo(syncable.tree, util.SimpleTree):
-
pkgcore_config_type = ConfigHint(typename="repo_config")
def __init__(self, succeed=True):
@@ -121,7 +118,6 @@ failure_section = basics.HardCodedConfigSection(
class TestSync(ArgParseMixin):
-
_argparser = pmaint.sync
def test_parser(self):
@@ -188,7 +184,6 @@ def derive_op(name, op, *a, **kw):
class TestCopy(ArgParseMixin):
-
_argparser = pmaint.copy
def execute_main(self, *a, **kw):
@@ -267,11 +262,9 @@ class TestCopy(ArgParseMixin):
class TestRegen(ArgParseMixin):
-
_argparser = pmaint.regen
def test_parser(self):
-
options = self.parse("fake", "--threads", "2", domain=make_domain())
assert isinstance(options.repos[0], util.SimpleTree)
assert options.threads == 2
diff --git a/tests/scripts/test_pplugincache.py b/tests/scripts/test_pplugincache.py
index 15f8b2c9..880a5eaa 100644
--- a/tests/scripts/test_pplugincache.py
+++ b/tests/scripts/test_pplugincache.py
@@ -4,7 +4,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class TestCommandline(ArgParseMixin):
-
_argparser = pplugincache.argparser
has_config = False
diff --git a/tests/scripts/test_pquery.py b/tests/scripts/test_pquery.py
index 72b31d24..c2e7dc99 100644
--- a/tests/scripts/test_pquery.py
+++ b/tests/scripts/test_pquery.py
@@ -7,7 +7,6 @@ from pkgcore.test.scripts.helpers import ArgParseMixin
class FakeDomain:
-
pkgcore_config_type = ConfigHint(
types={"repos": "refs:repo", "vdb": "refs:repo"}, typename="domain"
)
@@ -39,7 +38,6 @@ domain_config = basics.HardCodedConfigSection(
class TestCommandline(ArgParseMixin):
-
_argparser = pquery.argparser
def test_parser(self):
diff --git a/tests/sync/test_rsync.py b/tests/sync/test_rsync.py
index 8bfba18f..b6f73f3c 100644
--- a/tests/sync/test_rsync.py
+++ b/tests/sync/test_rsync.py
@@ -16,7 +16,6 @@ def fake_ips(num):
@mock.patch("socket.getaddrinfo", return_value=fake_ips(3))
@mock.patch("snakeoil.process.spawn.spawn")
class TestRsyncSyncer:
-
_syncer_class = rsync.rsync_syncer
@pytest.fixture(autouse=True)
@@ -89,7 +88,6 @@ class TestRsyncSyncer:
class TestRsyncTimestampSyncer(TestRsyncSyncer):
-
_syncer_class = rsync.rsync_timestamp_syncer
diff --git a/tests/test_eq_hash_inheritance.py b/tests/test_eq_hash_inheritance.py
index 86b3c558..229e0bc4 100644
--- a/tests/test_eq_hash_inheritance.py
+++ b/tests/test_eq_hash_inheritance.py
@@ -2,6 +2,5 @@ from snakeoil.test.eq_hash_inheritance import Test
class Test_Eq_Hash(Test):
-
target_namespace = "pkgcore"
ignore_all_import_failures = True
diff --git a/tests/test_slot_shadowing.py b/tests/test_slot_shadowing.py
index fa47e291..9702f96c 100644
--- a/tests/test_slot_shadowing.py
+++ b/tests/test_slot_shadowing.py
@@ -2,7 +2,6 @@ from snakeoil.test.slot_shadowing import SlotShadowing
class Test_slot_shadowing(SlotShadowing):
-
target_namespace = "pkgcore"
ignore_all_import_failures = True