using DataDepsGenerators
using Test

using ReferenceTests

@testset "DataDryad test" begin
    # Via URL
    @test_reference "references/DataDryad Ecology.txt" generate(DataDryad(), "https://datadryad.org/resource/doi:10.5061/dryad.74699")
    #Via DOI
    @test_reference "references/DataDryad Ecology.txt" generate(DataDryad(), "https://datadryad.org/resource/doi:10.5061/dryad.74699")
    
    #Checking files with multiple files available for download
    @test_reference "references/DataDryad Plasticity.txt" generate(DataDryad(), "https://datadryad.org/resource/doi:10.5061/dryad.f9s4424")
    @test_reference "references/DataDryad Drought.txt" generate(DataDryad(), "https://datadryad.org/resource/doi:10.5061/dryad.cc8834s")
end
