File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
src/test/groovy/ru/vyarus/gradle/plugin/python/cmd Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 11package ru.vyarus.gradle.plugin.python.cmd
22
33import org.gradle.api.Project
4- import org.gradle.testfixtures.ProjectBuilder
54import 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}
You can’t perform that action at this time.
0 commit comments