def test_valid_schema_all():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.default_settings", "valid_schema_all.json")

    # System under test
    validator.validate_data(data)
Example #2
0
def test_valid_schema_environments():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.core", "valid_schema_environments.json")

    # System under test
    validator.validate_data(data)
Example #3
0
def test_valid_schema_all():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.developer_environments", "valid_schema_all.json")

    # System under test
    validator.validate_data(data)
def test_invalid_data_none():
    # Setup
    validator = Validator()

    # System under test
    with pytest.raises(ValidationError):
        validator.validate_data(None)
Example #5
0
def test_invalid_schema_action_no_files():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.core", "invalid_schema_actions_no_files.json")

    # System under test
    with pytest.raises(ValidationError):
        validator.validate_data(data)
Example #6
0
def test_invalid_schema_virtual_environments_no_name():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.developer_environments", "invalid_schema_virtual_environments_no_name.json")

    # System under test
    with pytest.raises(ValidationError):
        validator.validate_data(data)
def test_invalid_schema_default_settings_null_end():
    # Setup
    validator = Validator()
    data = load_test_data("alpha.default_settings",
                          "invalid_schema_default_settings_null_end.json")

    # System under test
    with pytest.raises(ValidationError):
        validator.validate_data(data)