Refactor ruff (#1155)

* Refactored to make ruff happy

* Refactored tests, fixed bug in Mojave path_raw
This commit is contained in:
Rhet Turnbull
2023-08-12 20:24:46 -06:00
committed by GitHub
parent e53d223f2d
commit 8be71243d5
35 changed files with 192 additions and 204 deletions

View File

@@ -19,7 +19,7 @@ def test_init():
cfg = ConfigOptions("test", VARS)
assert isinstance(cfg, ConfigOptions)
assert cfg.foo == "bar"
assert cfg.bar == False
assert not cfg.bar
assert type(cfg.test1) == tuple
@@ -67,7 +67,7 @@ def test_asdict():
cfg = ConfigOptions("test", VARS)
cfg_dict = cfg.asdict()
assert cfg_dict["foo"] == "bar"
assert cfg_dict["bar"] == False
assert not cfg_dict["bar"]
assert cfg_dict["test1"] == ()