forked from fabric8-analytics/cli-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: relative manifest file path support (fabric8-analytics#42)
- Loading branch information
Deepak Sharma
authored
Apr 6, 2021
1 parent
a9e3489
commit 6236425
Showing
4 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package cmd | ||
|
||
import ( | ||
"path/filepath" | ||
"testing" | ||
|
||
"github.com/google/go-cmp/cmp" | ||
) | ||
|
||
// TestGetAbsPath tests Absolute Path func. | ||
func TestGetAbsPath(t *testing.T) { | ||
got := getAbsPath("testdata/requirements.txt") | ||
want, _ := filepath.Abs("testdata/requirements.txt") | ||
if diff := cmp.Diff(want, got); diff != "" { | ||
t.Errorf("Error in getAbsPath func. (-want, +got):\n%s", diff) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile --output-file=requirements.txt requirements.in | ||
# | ||
click==7.0 # via flask | ||
codecov==2.1.11 | ||
flask==1.0.2 | ||
gunicorn==19.9.0 | ||
itsdangerous==1.1.0 # via flask | ||
jinja2==2.11.3 # via flask | ||
markupsafe==1.1.1 # via jinja2 | ||
prometheus_client==0.6.0 | ||
werkzeug==0.15.4 # via flask | ||
raven[flask]==6.10.0 | ||
contextlib2==0.5.5 # via raven | ||
blinker==1.4 # via raven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters