Beispiel #1
0
    def test_raiseErrorWhenSaveLocationDoesNotExist(self):
        general_settings = Settings(SAMPLE_SETTINGS_FILE)

        with pytest.raises(exceptions.SaveLocationNotExist) as e:
            general_settings.validate_settings()
Beispiel #2
0
    def test_raiseErrorWhenNoAPIOptionsAreFoundInSettings(self):
        empty_file = TEST_DATA_DIR / 'empty.txt'
        general_settings = Settings(empty_file)

        with pytest.raises(exceptions.APINotFound) as e:
            general_settings.validate_settings()