Skip to content

Commit

Permalink
test(downloader): Remove unused test data
Browse files Browse the repository at this point in the history
Remove test data from `VersionControlSystemTest` which is not required
for the tests.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
  • Loading branch information
mnonnenmacher committed Sep 21, 2023
1 parent eadb556 commit f1bb9c8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions downloader/src/test/kotlin/VersionControlSystemTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import java.io.IOException
import java.lang.UnsupportedOperationException

import org.ossreviewtoolkit.downloader.vcs.Git
import org.ossreviewtoolkit.model.Identifier
import org.ossreviewtoolkit.model.Package
import org.ossreviewtoolkit.model.VcsInfo
import org.ossreviewtoolkit.model.VcsType
Expand Down Expand Up @@ -77,10 +76,9 @@ class VersionControlSystemTest : WordSpec({
"getRevisionCandidates()" should {
"prefer a matching tag name over a branch name from metadata" {
val pkg = Package.EMPTY.copy(
id = Identifier("Gem::google-cloud-core:1.6.0"),
vcsProcessed = VcsInfo(
type = VcsType.GIT,
url = "https://github.com/googleapis/google-cloud-ruby.git",
url = "",
revision = "master"
)
)
Expand All @@ -96,12 +94,10 @@ class VersionControlSystemTest : WordSpec({

"add 'main' as a candidate for Git if otherwise 'master' is the only one" {
val pkg = Package.EMPTY.copy(
id = Identifier("NuGet::Microsoft.NETFramework.ReferenceAssemblies.net40:1.0.0-preview.2"),
vcsProcessed = VcsInfo(
type = VcsType.GIT,
url = "https://github.com/Microsoft/dotnet.git",
revision = "master",
path = "releases/reference-assemblies"
url = "",
revision = "master"
)
)

Expand Down

0 comments on commit f1bb9c8

Please sign in to comment.