File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -110,3 +110,20 @@ def test_normalize_doi():
110110 assert utils .normalize_doi ("http://doi.org/10.1234/jshd123" ) == "10.1234/jshd123"
111111 assert utils .normalize_doi ("https://doi.org/10.1234/jshd123" ) == "10.1234/jshd123"
112112 assert utils .normalize_doi ("http://dx.doi.org/10.1234/jshd123" ) == "10.1234/jshd123"
113+
114+
115+ @pytest .mark .parametrize (
116+ "req, is_local" ,
117+ [
118+ ("-r requirements.txt" , True ),
119+ ("-e ." , True ),
120+ ("file://subdir" , True ),
121+ ("file://./subdir" , True ),
122+ ("git://github.com/jupyter/repo2docker" , False ),
123+ ("git+https://github.com/jupyter/repo2docker" , False ),
124+ ("numpy" , False ),
125+ ("# -e ." , False ),
126+ ],
127+ )
128+ def test_local_pip_requirement (req , is_local ):
129+ assert utils .is_local_pip_requirement (req ) == is_local
You can’t perform that action at this time.
0 commit comments