Example #1
0
def test_validate_valid(data_home, mocker, mock_validator):
    mock_validator.return_value = (False, False)

    missing_files, invalid_checksums = orchset.validate(data_home)
    assert not (missing_files or invalid_checksums)
    mock_validator.assert_called_once()
Example #2
0
def test_validate_invalid(dataset_path, mocker, mock_validator):
    mock_validator.return_value = (True, True)

    missing_files, invalid_checksums = salami.validate(dataset_path)
    assert missing_files and invalid_checksums
    mock_validator.assert_called_once()
Example #3
0
def test_validate_invalid(data_home, mocker, mock_validator):
    mock_validator.return_value = (True, True)

    missing_files, invalid_checksums = orchset.validate(data_home)
    assert missing_files and invalid_checksums
    mock_validator.assert_called_once()
Example #4
0
def test_validate_valid(dataset_path, mocker, mock_validator):
    mock_validator.return_value = (False, False)

    missing_files, invalid_checksums = salami.validate(dataset_path)
    assert not (missing_files or invalid_checksums)
    mock_validator.assert_called_once()