diff --git a/dcc/config.py b/dcc/config.py index ae2487a..d1683a7 100644 --- a/dcc/config.py +++ b/dcc/config.py @@ -15,7 +15,7 @@ class ConfigBase(object): self.doom.joinpath(self.config_name)).read() self._dsda = self._config.get("dsda") - if self._dsda is None: + if self.dsda is None: raise Exception( "required key 'dsda' not set in config " + f"{self.doom.joinpath(self.config_name)}.") @@ -37,7 +37,7 @@ class ConfigBase(object): propname = "_".join(what) val = self._config for w in what: - val = val.get(w) + val = val[w] if val is None: val = default break diff --git a/dcc/extract.py b/dcc/extract.py index 447ffa9..a61b446 100644 --- a/dcc/extract.py +++ b/dcc/extract.py @@ -40,6 +40,6 @@ class Extract(dcc.doom_base.Wad): ) print( - f"Lump {parsed_args.lump} not found in any wad in " + "Lump {parsed_args.lump} not found in any wad in " + f"{parsed_args.wad}" ) diff --git a/pyproject.toml b/pyproject.toml index 891d8db..1970ebf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,9 +16,6 @@ dependencies = [ "omgifol (>=0.5.1,<0.6.0)", "tomlkit (>=0.13.3,<0.14.0)", "wand (>=0.6.13,<0.7.0)", - "pytest (>=8.4.2,<9.0.0)", - "pillow (>=11.3.0,<12.0.0)", - "pytest-mockito (>=0.0.4,<0.0.5)", ] @@ -34,8 +31,3 @@ dcc = { source = "dcc/main.py", type = "onefile" } [tool.poetry-pyinstaller-plugin.collect] all = ["cliff"] - -[tool.pytest.ini_options] -testpaths = [ - "tests", -]