Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed Jan 29, 2021
1 parent a9b3eda commit 12bc075
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions flank-scripts/src/test/kotlin/flank/common/FilesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,6 @@ internal class FilesTest {
expectedDestination.toFile().delete()
}

@Test
fun `Should download file and store it and destination`() {
// given
val testSource = "https://path.com/to/test/settings.gradle.kts"
val testDestination = Paths.get(root.newFolder("temp").toString(), "settings.gradle.kts")

// when
downloadFile(testSource, testDestination)

// then
Assert.assertTrue(testDestination.toFile().exists())
Assert.assertTrue(testDestination.toFile().length() > 0)
}

@Test
fun `Should check if directory contains all needed files`() {
// given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class FuelMockServer : Client {
return when {
url.startsWith("https://api.github.com/repos/flank/flank/", ignoreCase = true) -> handleGithubMockRequest(url, request)
url.startsWith(ZENHUB_BASE_URL) -> handleZenhubMockRequest(url, request)
url == "https://path.com/to/test/settings.gradle.kts" -> request.buildResponse("not empty", 200)
else -> Response(request.url)
}
}
Expand Down

0 comments on commit 12bc075

Please sign in to comment.