Skip to content

Commit b9b2285

Browse files
committed
revert test
1 parent 15e1364 commit b9b2285

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

src/test/groovy/ru/vyarus/gradle/plugin/python/cmd/PipCliTest.groovy

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package ru.vyarus.gradle.plugin.python.cmd
22

33
import org.gradle.api.Project
4-
import org.gradle.testfixtures.ProjectBuilder
54
import ru.vyarus.gradle.plugin.python.AbstractTest
65

7-
import java.util.regex.Pattern
8-
96
/**
107
* @author Vyacheslav Rusakov
118
* @since 20.11.2017
@@ -45,31 +42,23 @@ class PipCliTest extends AbstractTest {
4542

4643
def "Check version parse fail"() {
4744

48-
when: "fallback to python call"
45+
when: "prepare pip"
4946
Project project = project()
50-
Pip pip = new FooPip(project, 'you will not parse it')
51-
then: "ok"
52-
pip.version =~ /\d+\.\d+\.\d+/
53-
54-
when: "empty version in regex fallback to python"
55-
pip = new FooPip(project, 'pip form ')
47+
Pip pip = new FooPip(project)
5648
then: "ok"
5749
pip.version =~ /\d+\.\d+\.\d+/
5850

5951
}
6052

6153
class FooPip extends Pip {
6254

63-
String line
64-
65-
FooPip(Project project, String line) {
55+
FooPip(Project project) {
6656
super(project)
67-
this.line = line
6857
}
6958

7059
@Override
7160
String getVersionLine() {
72-
return line
61+
return 'you will not parse it'
7362
}
7463
}
7564
}

0 commit comments

Comments
 (0)