Пример #1
0
    def test_from_yaml(self, get_testing_config):
        conf = Config()
        conf.from_yaml(TESTCONF_PATH)

        assert sorted(conf.items()) == sorted(get_testing_config.items())
Пример #2
0
    def test_from_str(self, get_testing_config):
        conf = Config()
        with open(TESTCONF_PATH, "r") as conf_file:
            conf.from_str(conf_file.read())

        assert sorted(conf.items()) == sorted(get_testing_config.items())
Пример #3
0
    def test_from_dict(self, get_testing_config):
        conf = Config()
        conf.from_dict(get_testing_config)

        assert sorted(conf.items()) == sorted(get_testing_config.items())