Skip to content

Commit 10066b1

Browse files
committed
Add pip install
1 parent 314e6f7 commit 10066b1

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
isort . --check -v
3636
flake8 . --count --exit-zero --max-complexity=10 --statistics
3737
pydocstyle --convention=numpy -e bashplot/bashplot.py
38+
- name: Install bashplot
39+
run: |
40+
pip install .
3841
- name: Test with pytest
3942
run: |
4043
pytest -vv --cov=./test --cov-report=xml

test/test_bashplot.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,43 +64,43 @@
6464

6565
def test_fnames():
6666

67-
bashplot.get_args(opt={"infile": test_txt})["infile"] == test_txt
67+
assert bashplot.get_args(opt={"infile": test_txt})["infile"] == test_txt
6868

6969

7070
def test_options_scatter():
71-
bashplot.get_args(opt={"scatter": True})["scatter"] == True
71+
assert bashplot.get_args(opt={"scatter": True})["scatter"] == True
7272

7373

7474
def test_options_color():
75-
bashplot.get_args(opt={"color": True})["color"] == True
75+
assert bashplot.get_args(opt={"color": True})["color"] == True
7676

7777

7878
def test_options_legend():
79-
bashplot.get_args(opt={"legend": False})["legend"] == False
79+
assert bashplot.get_args(opt={"legend": False})["legend"] == False
8080

8181

8282
def test_options_version():
83-
bashplot.get_args(opt={"version": True})["version"] == True
83+
assert bashplot.get_args(opt={"version": True})["version"] == True
8484

8585

8686
def test_xlimits():
87-
bashplot.get_args(opt={"x_limits": [0.0, 20.0]})["x_limits"] == [0.0, 20.0]
87+
assert bashplot.get_args(opt={"x_limits": [0.0, 20.0]})["x_limits"] == [0.0, 20.0]
8888

8989

9090
def test_ylimits():
91-
bashplot.get_args(opt={"y_limits": [0.0, 20.0]})["y_limits"] == [0.0, 20.0]
91+
assert bashplot.get_args(opt={"y_limits": [0.0, 20.0]})["y_limits"] == [0.0, 20.0]
9292

9393

9494
def test_size():
95-
bashplot.get_args(opt={"size": [60, 60]})["size"] == [60, 60]
95+
assert bashplot.get_args(opt={"size": [60, 60]})["size"] == [60, 60]
9696

9797

9898
def test_ranges_default():
99-
bashplot.get_args()["size"] == [60, 40]
99+
assert bashplot.get_args()["size"] == [60, 40]
100100

101101

102102
def test_usecols():
103-
bashplot.get_args(opt={"usecols": [0, 2, 5]})["usecols"] == [0, 2, 5]
103+
assert bashplot.get_args(opt={"usecols": [0, 2, 5]})["usecols"] == [0, 2, 5]
104104

105105

106106
@mock.patch("bashplot.bashplot.bashplot")

0 commit comments

Comments
 (0)