Exemple #1
0
    def test_load_config_loads_configuration_file(self):
        shepherd = Shepherd(["-c", "./tests/cons.conf"])
        shepherd.load_config()

        expect(shepherd.config.KEY).to_equal("doing something...")
Exemple #2
0
    def test_load_config_loads_configuration_file(self):
        shepherd = Shepherd(["-c", "./tests/cons.conf"])
        shepherd.load_config()

        expect(shepherd.config.KEY).to_equal("doing something...")
Exemple #3
0
    def test_load_config_returns_if_no_config(self):
        shepherd = Shepherd([])
        shepherd.load_config()

        expect(shepherd.config).not_to_be_null()
        expect(shepherd.config).to_be_instance_of(Config)
Exemple #4
0
    def test_load_config_returns_if_no_config(self):
        shepherd = Shepherd([])
        shepherd.load_config()

        expect(shepherd.config).not_to_be_null()
        expect(shepherd.config).to_be_instance_of(Config)