Skip to content

Commit

Permalink
tests: mark xfail the test for default config caching
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Nov 16, 2021
1 parent 5f6efb2 commit 8eb1cb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/modmail/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
def test_config_is_cached():
"""Test configuration is cached, helping keep only one version of the configuration in existance."""
for _ in range(2):
assert config.config() == config._CACHED_CONFIG
assert config.config() is config.config()


@pytest.mark.xfail(
reason="Default config is temporarily not cached due to a bug relating to frozen attributes."
)
def test_default_config_is_cached():
"""Test default configuration is cached, helping keep only one version of the config in existance."""
for _ in range(2):
assert config.default() == config._CACHED_DEFAULT
assert config.default() is config.default()


class TestConfigLoaders:
Expand Down

0 comments on commit 8eb1cb9

Please sign in to comment.