Example #1
0
    def _reset_config(self):
        """Reset config."""
        from furious.config import get_config
        from furious.config import default_config

        config = get_config()

        get_config().clear()
        config.update(default_config())
Example #2
0
    def _reset_config(self):
        """Reset config."""
        from furious.config import get_config
        from furious.config import default_config

        config = get_config()

        get_config().clear()
        config.update(default_config())
Example #3
0
    def test_get_config_empty_yaml(self):
        """Ensure an empty furious.yaml will produce a default config."""
        from furious.config import default_config
        from furious.config import _parse_yaml_config

        example_yaml = str('')

        my_config = _parse_yaml_config(example_yaml)

        self.assertEqual(my_config, default_config())
Example #4
0
    def test_get_config_empty_yaml(self):
        """Ensure an empty furious.yaml will produce a default config."""
        from furious.config import default_config
        from furious.config import _parse_yaml_config

        example_yaml = str('')

        my_config = _parse_yaml_config(example_yaml)

        self.assertEqual(my_config, default_config())