Closed flying-sheep closed 3 weeks ago
This removes the class attributes and replaces them with instance attributes.
Previously, doing anything with a SettingsManager instance would modify the class.
SettingsManager
I also modified the tests to use an instance, so .deprecate doesn’t persist after a test. Tests should be without side effects.
.deprecate
without whitespace changes: https://github.com/scverse/anndata/pull/1515/files?w=1
I removed the superfluous monkeypatch.scope: Monkey patches get reset at the end of each test, so unless you need to reset them before the end of the test, no need to use scopes.
monkeypatch.scope
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.38%. Comparing base (10c0d5b) to head (8861c02).
10c0d5b
8861c02
This removes the class attributes and replaces them with instance attributes.
Previously, doing anything with a
SettingsManager
instance would modify the class.I also modified the tests to use an instance, so
.deprecate
doesn’t persist after a test. Tests should be without side effects.How to review
without whitespace changes: https://github.com/scverse/anndata/pull/1515/files?w=1
I removed the superfluous
monkeypatch.scope
: Monkey patches get reset at the end of each test, so unless you need to reset them before the end of the test, no need to use scopes.